lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: Using query functions against a "type" field
Date Tue, 06 Jan 2009 17:45:46 GMT
On Tue, Jan 6, 2009 at 10:41 AM, Feak, Todd <Todd.Feak@smss.sony.com> wrote:
> The boost queries are true queries, so the amount boost can be affected
> by things like term frequency for the query.

Sounds like a constant score query is a general way to do this.

Possible QParser syntax:
{!const}tag:FOO OR tag:BAR

Could be implemented via ConstantScoreQuery(QueryWrapperFilter(theQuery))

The value could be the boost, optionally set within this QParser...
{!const v=2.0}tag:FOO OR tag:BAR

-Yonik

Mime
View raw message