Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nelsenlim 70 posts 71 karma points
    Feb 12, 2011 @ 06:55
    nelsenlim
    0

    Umbraco Examine Search Number

    Hi this is my scenario

    I have a node named "100G"
    Now using Examine i cannot get any result when i search for "100G"
    Then i tried in umbraco back office search box when i type "100G", it returns no result as well

    But if i type "100" it will show as it is a prefix search, i want to do an exact search

    Is there a problem with searching something with number and word attached together?
    Where do i need to make a tweak?

    My back end code looks like this

            private void RunSearch(string q)

            {

                ISearchCriteria sc = ExamineManager.Instance.CreateSearchCriteria(UmbracoExamine.IndexTypes.Content);

                IBooleanOperation query = sc.NodeName(q.MultipleCharacterWildcard());

                IEnumerable<SearchResult> results = ExamineManager.Instance.Search(query.Compile());

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Feb 14, 2011 @ 03:19
    Aaron Powell
    0

    What analyzer are you using, the different analyzers treat numbers in different ways.

  • nelsenlim 70 posts 71 karma points
    Feb 14, 2011 @ 05:54
    nelsenlim
    0

    My ExamineIndex.config and ExamineSettings.config is not changed after installation so i am using the default search provider which is also used in the umbraco back office

      <ExamineSearchProviders defaultProvider="InternalSearcher">

        <providers>

          <add name="InternalSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"

               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>

    Do you know how i should change my analyzer?

    Best regards,
    Nelsen

Please Sign in or register to post replies

Write your reply to:

Draft