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 <vika...@yahoo.com> 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:
> http://old.nabble.com/dismax-query-syntax-to-replace-standard-query-tp26631725p26631725.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to