I have the following query being generated by examine,
+nodeTypeAlias:Product
It returns no results , however when i run luke and use above query with standard analyser instead of whitespace analyzer i get results. So i tried to update my ExamineSettings.config file from
I took a look at your blog post and my CreateSearchCriteria method did not pass in IndexTypes.Content so updated to that and now my query that outputs looks like
I get no results, if i run this query in luke but using whitespace analyzer i get no results. Run the same query but this time swapped to standard analyzer i get results. Does the config allow swapping over of analyzer to Lucene.Net.Analysis.StandardAnalyzer it seems to go boom when you try.
Super high 5 you rock! Took out the analyzer attribute and as you say defaults to standard then rebuild my index all working. I love Examine I expect to have lots of fun with in future projects.
I think your standard analyzer setting should be Lucene.Net.Analysis.Standard.StandardAnalyzer, not Lucene.Net.Analysis.StandardAnalyzer (forgot the Standard after Analysis).
Examine whitespaceanalyzer issue
I have the following query being generated by examine,
+nodeTypeAlias:Product
It returns no results , however when i run luke and use above query with standard analyser instead of whitespace analyzer i get results. So i tried to update my ExamineSettings.config file from
to
However i get error Value cannot be null error and yellow screen of death. Am I missing a trick here?
Regards
Ismail
Are you using the same analyzer to index and search? If you use different ones it can freak out.
Have you checked out the post I did last week about understanding the indexes that are build up: http://farmcode.org/post/2010/08/12/How-to-build-a-search-query-in-Examine.aspx
Slace,
I am using same analyzers for both my config looks like
I took a look at your blog post and my CreateSearchCriteria method did not pass in IndexTypes.Content so updated to that and now my query that outputs looks like
{ SearchIndexType: Content, LuceneQuery: +(+nodeTypeAlias:Product) +__IndexType:content }
I get no results, if i run this query in luke but using whitespace analyzer i get no results. Run the same query but this time swapped to standard analyzer i get results. Does the config allow swapping over of analyzer to Lucene.Net.Analysis.StandardAnalyzer it seems to go boom when you try.
Regards
Ismail
What is the error you get? You should be able to swap out the analyzers, also if you don't set an analyzer you should get the StandardAnalyzer anyway.
Try changing the analyzer (or not setting one) and reindex the document(s) in question (done by save & publishing the nodes).
Slace,
Super high 5 you rock! Took out the analyzer attribute and as you say defaults to standard then rebuild my index all working. I love Examine I expect to have lots of fun with in future projects.
Regards
Ismail
I think your standard analyzer setting should be Lucene.Net.Analysis.Standard.StandardAnalyzer, not Lucene.Net.Analysis.StandardAnalyzer (forgot the Standard after Analysis).
is working on a reply...