Hi,

If I search for "London" with the following query, I get London city at the
top.

name:London^10
category:City^5
category:Organization^1

Now I would like to store this query in SearchHandler with  a parameter
$term instead of the hard-coded word "London". However, I am not sure how
the query should be constructed to get identical results to the query
above. The following query ignores category search whatsoever:

{!qf="name^10" v=$term}
category:City^5
category:Organization^1

To add, what if I wanted to date-boost the category field (not the whole
query) if the matched $term is of type Organization?

{!qf="name^10" v=$term}
category:City^5
category:Organization^(date_boost)

Are you aware of a good book or a source on the Internet regarding query
construction as specified above?

Best,
Gintas

Reply via email to