: 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