You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by eShard <zi...@yahoo.com> on 2014/01/21 18:11:11 UTC

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.