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 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
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());
What analyzer are you using, the different analyzers treat numbers in different ways.
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
is working on a reply...