lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafał Kuć <ra...@kuciowie.pl>
Subject ODP: How to get phrase recipe working?
Date Tue, 21 Jan 2014 17:44:15 GMT
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 <zim327@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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message