On 13/02/2008, at 20:56, Mike Klaas wrote:
On 13-Feb-08, at 6:16 AM, Leonardo Santagada wrote:
We would like to use DisMaxHandler but the thing is that on plone
advanced search you can search for other fields besides the default
one, and in more than one at the same time. So what would be nice
is to be able to search with multiple "q" each with a specific
field. Is this somehow possible or not?
If you want to search the same thing in multiple fields, use:
q=<query>
qf=field1 field2 field3
To this you can add multiple restrictions (filters) of arbitrary
queries in any field:
fq=field4:query2
fq=field5:query3
If you want to boost these queries rather than filter, use bq.
-Mike
Thanks but I would like to be able to:
q=<query>
qf=field1
q=<query2>
qf=field2
...
so I can use dismax facilities (that is, not having that many
wildcards and special characters) and search in more than one field
(but with different queries) at the same time.
In this search form you have 3 places where you can choose a field and
then enter a search query... and then there are some more restrictions
you can choose (we would put those in one of more fq). Get the idea?
--
Leonardo Santagada