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 saw that > > my OR gets represented as a blank in the query. Is that fine? > > Yes. Actually each BooleanClause can have a required (+) or prohibited (-) > mode. That's why the following expansions take place: > > - x AND y -> +x +y > - x OR y -> x y > - x AND NOT y -> +x -y (off the top of my head) > > I for one prefer to use +/- syntax instead of AND/OR because those I find > misleading.
In case the structure of the boolean query is known beforehand it is normally better not to rely on the query parser and to construct the (nested) boolean query in the program code by adding optional and required clauses to the boolean queries. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
