lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafał Kuć <>
Subject ODP: How to get phrase recipe working?
Date Tue, 21 Jan 2014 17:44:15 GMT

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 <> 
Data:21.01.2014  18:11  (GMT+01:00) 
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"
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
  <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="English"/>

I ran a sample query q=text_ph:"a-z index" and it didn't work very well at
Is there a better way to do phrase searches? 
I need a specific configuration to follow/use.

View this message in context:
Sent from the Solr - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message