Whole Phrase search in Solr
Hello, I am trying to achieve searching with a phrase in SOLR. Specifically I have the following field in my schema: Also (as a second similar problem) in the “synonyms.txt” I have values like these: aword => a whole phrase and I even tried: aword => "a whole phrase" now I tried searching for “check this” in several ways: fq=search_field:check this fq=search_field:check+this fq=search_field:"check this" fq=search_field:'check this' but in all cases the search seems to run for “check OR this”! similarly, if I search for “aword” which matches the synonyms file, the search also looks for “a OR whole OR phrase”. What am I doing wrong? Is there any way to force the query for the whole phrase and not for each word separately? -- View this message in context: http://lucene.472066.n3.nabble.com/Whole-Phrase-search-in-Solr-tp4023931.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Whole Phrase search in Solr
Thank you Jack, the problem with the "AND" is that it does not search for a PHRASE but for the 2 words being SOMEWHERE in the article. For example the "Check this" will NOT search for "Check this" as a PHRASE but for the "Check" word and the "this" word somewhere in the article, even far away the one from the other. So the suggestions that you made do not work for searching as a "PHRASE". Unless we do something wrong? Any other ideas on the PHRASE search? Thank you again! -- View this message in context: http://lucene.472066.n3.nabble.com/Whole-Phrase-search-in-Solr-tp4023931p4024029.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Whole Phrase search in Solr
Jack thank you again, however we have the major problem that using QUOTES to bring "phrase" results, actually does not bring any results AT ALL! I mentioned this at the initial post, that we also used these: fq=search_field:"check this" fq=search_field:'check this' But no results appear when quotes are used. What may be doing wrong in our configuration? -- View this message in context: http://lucene.472066.n3.nabble.com/Whole-Phrase-search-in-Solr-tp4023931p4024071.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Whole Phrase search in Solr
Hello Jack, You are the man! Indeed, this was the problem. We tried several combinations and we thought that we did that too, but somehow we failed to see that your proposal was working! Don't know why, maybe we had something else changed in parallel, don't know. So, THANK YOU, you have been a great support! -- View this message in context: http://lucene.472066.n3.nabble.com/Whole-Phrase-search-in-Solr-tp4023931p4024196.html Sent from the Solr - User mailing list archive at Nabble.com.