lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: dismax multi search?
Date Mon, 05 Apr 2010 17:52:41 GMT

: 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


Mime
View raw message