I noticed it is not possible to define Occur.SHOULD in Lucene 1.4.3
-----Original Message----- From: Nicolas Lalevée [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 2:03 PM To: java-user@lucene.apache.org Subject: Re: Merge Hits ***** This message comes from the Internet Network ***** Le Lundi 29 Janvier 2007 13:33, DECAFFMEYER MATHIEU a écrit : > Thank u for your response, > Actually I want to merge the Hits to get a better score, > For example when user enter Hello > I want to merge : > title:Hello > headlines:Hello > summary:Hello > content:Hello > > Then I will get a better score if the title is Hello, > What do u think of this ? Just do a boolean query of every of these queries : "title:Hello headlines:Hello summary:Hello content:Hello" If you are making your queries in Java-Java, make you BooleanQuery's clauses with an Occur.SHOULD. -- Nicolas LALEVÉE Solutions & Technologies ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ============================================ Internet communications are not secure and therefore Fortis Banque Luxembourg S.A. does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. ============================================ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]