FAQ
Hey guys, a question about query multiple fields.

I would like to query my index with queries that contained some words that
should be stemmed and some that should not. For example, for the query:
Nike's new "running shoes", i would like to be able to get also nike, but
for "running shoes" i would like to get exact phrases only.
From reading here i guess i'll have to index my text into two filelds, one
that goes through a stemmer (text_clean), and the other that doesn't
(text_orig).

My question is how do i query that?
q=text_clean:Nike's new text_orig:"running shoes"
seems like it would work, but not sure its the best way.

Is there a way i can tell the parser(or extend it) so that every phrase
query it will use one field and for others will use the default field?

TIA
--
View this message in context: http://lucene.472066.n3.nabble.com/stemmed-terms-and-phrases-in-a-combined-query-tp959042p959042.html
Sent from the Solr - User mailing list archive at Nabble.com.

Search Discussions

  • Chris Hostetter at Jul 15, 2010 at 1:12 am
    : My question is how do i query that?
    : q=text_clean:Nike's new text_orig:"running shoes"
    : seems like it would work, but not sure its the best way.

    that's a perfectly good way to do it.

    : Is there a way i can tell the parser(or extend it) so that every phrase
    : query it will use one field and for others will use the default field?

    not with any of the existing parsers.



    -Hoss

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsolr-user @
categorieslucene
postedJul 11, '10 at 11:06p
activeJul 15, '10 at 1:12a
posts2
users2
websitelucene.apache.org...

2 users in discussion

Oferiko: 1 post Chris Hostetter: 1 post

People

Translate

site design / logo © 2022 Grokbase