Lucene supports boost factors in queries that you construct but I am not
sure if this is available when sine the QueryParser. If you create
the queries yourself, you can definitely achieve that (it is not as
difficult
as it may seem).
Another thing to consider is to prepend the document title to the body you
index.
Possibly (not verified), matches at the
beginning of the document will have higher scoring. This method also
simplifies the searches
since you need to search only in a single field.
Tal
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
> Winshell
> Sent: Saturday, June 09, 2001 9:25 AM
> To: [EMAIL PROTECTED]
> Subject: [Lucene-users] weighting of document fields in scoring?
>
>
> I have created an index of documents in which each document has a
> title and contents field. From the end-user standpoint I would like
> queries (created from a QueryParser) to be run against both (all)
> document fields. Is there any way to have matches that occur in the
> title field be treated as more important, via some weighting function
> that effects document score?
> --
> -------------------------------------------------------------------------
> Jason Winshell, Principal Consulting Engineer [EMAIL PROTECTED]
> Bear River Associates, Inc. http://www.bearriver.com
>
> _______________________________________________
> Lucene-users mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/lucene-users
>
_______________________________________________
Lucene-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-users