How to get phrase recipe working?
Good morning, In the Apache Solr 4 cookbook, p 112 there is a recipe for setting up phrase searches; like so: fieldType name=text_phrase class=solr.TextField positionIncrementGap=100 analyzer tokenizer class=solr.WhitespaceTokenizerFactory/ filter class=solr.LowerCaseFilterFactory/ filter class=solr.SnowballPorterFilterFactory language=English/ /analyzer /fieldType I ran a sample query q=text_ph:a-z index and it didn't work very well at all. Is there a better way to do phrase searches? I need a specific configuration to follow/use. Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-get-phrase-recipe-working-tp4112484.html Sent from the Solr - User mailing list archive at Nabble.com.
ODP: How to get phrase recipe working?
Hello, Phrase search will work on any analyzed field if you will use the to sorround your phrase. Are you looking for something specific or a standard phrase search? Also - if you are looking for exact phrade search, you may want to remove Snowball filter. Rafał Kuć Oryginalna wiadomość Od: eShard zim...@yahoo.com Data:21.01.2014 18:11 (GMT+01:00) Do: solr-user@lucene.apache.org Temat: How to get phrase recipe working? Good morning, In the Apache Solr 4 cookbook, p 112 there is a recipe for setting up phrase searches; like so: fieldType name=text_phrase class=solr.TextField positionIncrementGap=100 analyzer tokenizer class=solr.WhitespaceTokenizerFactory/ filter class=solr.LowerCaseFilterFactory/ filter class=solr.SnowballPorterFilterFactory language=English/ /analyzer /fieldType I ran a sample query q=text_ph:a-z index and it didn't work very well at all. Is there a better way to do phrase searches? I need a specific configuration to follow/use. Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-get-phrase-recipe-working-tp4112484.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: ODP: How to get phrase recipe working?
Thanks, I'll remove the snowball filter and give it try. I guess I'm looking for an exact phrase match to start. (Is that the standard phrase search?) Is there something better or more versatile? Btw, great job on the book! -- View this message in context: http://lucene.472066.n3.nabble.com/ODP-How-to-get-phrase-recipe-working-tp4112491p4112511.html Sent from the Solr - User mailing list archive at Nabble.com.