On Saturday 21 May 2005 02:28, Maik Schreiber wrote:
> > +entity:product +(name:"audio cable"^2.0 content:"audio cable")
>
> Looks good to me. This query would only return products where either name or
> content matches "audio cable" (or both), and name matches get a higher
score.
>
> > Also I s
> +entity:product +(name:"audio cable"^2.0 content:"audio cable")
Looks good to me. This query would only return products where either name or
content matches "audio cable" (or both), and name matches get a higher score.
> Also I saw that
> my OR gets represented as a blank in the query. Is that
Hi,
After a little probing and trying I formulated this query:
queryString = "entity:\"" + en + "\" AND (name:\"" + queryString + "\"^2
OR content:\"" + queryString + "\")";
Query q = QueryParser.parse(queryString, "content", analyzer);
When I execute the above query, the fol