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 solruser2010 <ba...@yahoo.com> on 2010/03/25 15:02:35 UTC
dismax multi search?
Hi,
I am trying to see if something like this is possible using a dismax query
I want to be able to direct some search terms to specific fields
I want to do something like this
keyword1 should search against book titles / authors
keyword2 should search against book contents / book info / user reviews
Originally I thought my project requirements were search titles OR contents
not both at once. But it needs to be both at once.
Thanks
--
View this message in context: http://n3.nabble.com/dismax-multi-search-tp520091p520091.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: dismax multi search?
Posted by Chris Hostetter <ho...@fucit.org>.
: I want to be able to direct some search terms to specific fields
:
: I want to do something like this
:
: keyword1 should search against book titles / authors
:
: keyword2 should search against book contents / book info / user reviews
your question is a little vague ... will keyword1 and keyword2 be distinct
params (ie: will the user tell you when certain words should be queried
against titles/authors and when other keywords sould be queried against
content/info/reviews) ... or are you going to have big ass giant workd
lists, and anytime you see a word from one of those lists, you query a
specific field for that word?
assuming you mean the first (and not hte second) situation, you can use
nested query parsers with param substitutio to get some interesting
results...
http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/
http://n3.nabble.com/How-to-compose-a-query-from-multiple-HTTP-URL-parameters-td519441.html#a679489
-Hoss