Re: Question regarding boosting

2005-05-21 Thread Paul Elschot
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

Re: Question regarding boosting

2005-05-20 Thread Maik Schreiber
> +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

RE: Question regarding boosting

2005-05-20 Thread Mufaddal Khumri
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