lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject syntax for complicated query
Date Thu, 20 Jun 2002 14:48:01 GMT

If anyone could shed some light on if this were possible (or better yet
what's the syntax for it  :) with just Lucene query syntax and no
DateFilter I'd greatly appreciate it.  Need to bring back doc's in one
combined collection with the following weighting rules applied.  FYI, the
index was built with pretty much the 'shrink-wrapped' IndexHTML file but
has a two add'l fields which correspond to html meta-tags... an unstored
field called 'categories' and a keyword datefield called 'created'.

If the query were 'birds':

Doc's where 'categories' contains 'birds' and 'created' less than 1 yr
old... boost hitscore to 100% or (1,000,000%)
Doc's where 'categories' contains 'birds' and 'created' greater than 1 yr
old or null... boost hitscore to 99% or (1,000%)
Doc's where 'categories' !contains 'birds' but 'birds' found in the normal
'body' or 'title'... return normal hitscore

Any direction would be greatly appreciated!  Thanks everyone!


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message