You can use <fieldname>:<text> syntax to specify the field to search.  For 
example:

    title:"who moved my cheese"

There is nothing in Solr that would let you instruct it to send phrase queries 
to one field, and other queries to other field(s).  However, you can add that 
logic to your application and alter the query by prepending the appropriate 
field name before sending the query to Solr.


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch


----- Original Message ----
> From: cricdigs <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Wednesday, May 14, 2008 1:54:15 PM
> Subject: Re: Stop words and exact phrase
> 
> 
> Hi wunder,
> 
> Thanks for your response. I am still a little confused. Solr's analysis page
> shows that the stop word is removed from the query - its got nothing to do
> with the indexing imo.
> 
> If indexing has removed the stop words then I should not get any results
> right? But I get the results with the stop word removed. 
> 
> How do I tell Solr to send phrase queries to a field other than default?
> Will I have to code that or is it just a config setting?
> 
> Thanks.
> 
> 
> Walter Underwood wrote:
> > 
> > Try creating a separate field that does not remove stopwords,
> > populating that with and configuring the phrase
> > queries to go against that field instead.
> > 
> > I do something similar. For both regular and phrase queries,
> > we have a stemmed and stopped field and another field with
> > neither. The "exact" field has a higher boost. This helps
> > with movies like "Saw" and "Ran", which should not show
> > "see" or "run" as the top match.
> > 
> > wunder
> > 
> > On 5/14/08 8:09 AM, "cricdigs" wrote:
> > 
> >> 
> >> Hi all,
> >> 
> >> Is there a config setting that I could use to not remove stop words when
> >> doing an exact phrase match. For example when searching for "the world"
> >> (in
> >> quotes) I would like to look for just that and not get results for just
> >> "world". When I look at the analysis, I see that word "the" is removed by
> >> the StopFilter even if it is in quotes. So is there a work-around to
> >> solve
> >> this?
> >> 
> >> Thanks!
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Stop-words-and-exact-phrase-tp17233404p17237198.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to