lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Sugar <>
Subject Re: dismax query syntax to replace standard query
Date Thu, 03 Dec 2009 21:14:30 GMT
I believe you need to use the fq parameter with dismax (not to be confused
with qf) to add a "filter query" in addition to the q parameter.

So your text search value goes in q parameter (which searches on the fields
you configure) and the rest of the query goes in the fq.

Would that work?

On Thu, Dec 3, 2009 at 7:28 PM, javaxmlsoapdev <> wrote:

> I have configured dismax handler to search against both "title" &
> "description" fields now I have some other attributes on the page e.g.
> "status", "name" etc. On the search page I have three fields for user to
> input search values
> 1)Free text search field (which searchs against both "title" &
> "description")
> 2)Status (multi select dropdown)
> 3)name(single select dropdown)
> I want to form query like textField1:value AND status:(Male OR Female) AND
> name:"abc". I know first (textField1:value searchs against both "title" &
> "description" as that's how I have configured dixmax in the configuration)
> but not sure how I can AND other attributes (in my case "status" & "name")
> note; standadquery looks like following (w/o using dixmax handler)
> title:"test"description:"test"name:"Joe"statusName:(Male OR Female)
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message