Re: MultiFieldQueryParser Problems about how to give the fields weight

2005-05-15 Thread luqun lou
How to boost it at indexing time? From: Otis Gospodnetic <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: MultiFieldQueryParser Problems about how to give the fields weight Date: Wed, 11 May 2005 12:44:12 -0700 (PDT) If you think c

Re: MultiFieldQueryParser Problems about how to give the fields weight

2005-05-11 Thread Otis Gospodnetic
If you think content field is more important, you could boost it at indexing time. If you want to boost at search time, and you are using QueryParser, you could just use the term^float syntax. I think what you have down there is ok, too, but I suppose you'd need an if/else so you boost only the c