com.atlassian.jira.util.lucene
Class ConstantScorePrefixQuery

java.lang.Object
  extended by com.atlassian.jira.util.lucene.ConstantScorePrefixQuery

public class ConstantScorePrefixQuery
extends Object

Creates PrefixQuery instances that doesn't rewrite into a BooleanQuery with all matching terms in the field. This query returns a constant score equal to its boost for all documents with the matching prefix term.

This can be significantly cheaper and faster if there are a lot of matching terms. It is very slightly slower if the number of matched terms is one or two.

Since:
4.0
See Also:
http://jira.atlassian.com/browse/JRA-17623

Constructor Summary
ConstantScorePrefixQuery()
           
 
Method Summary
static org.apache.lucene.search.PrefixQuery build(org.apache.lucene.index.Term term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantScorePrefixQuery

public ConstantScorePrefixQuery()
Method Detail

build

public static org.apache.lucene.search.PrefixQuery build(org.apache.lucene.index.Term term)


Copyright © 2002-2014 Atlassian. All Rights Reserved.