public class

ConstantScorePrefixQuery

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.lucene.ConstantScorePrefixQuery

Class Overview

Creates PrefixQuery instances that doesn't rewrite into a BooleanQuery with all matching TermQuery 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.

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

Summary

Public Constructors
ConstantScorePrefixQuery()
Public Methods
static PrefixQuery build(Term term)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ConstantScorePrefixQuery ()

Public Methods

public static PrefixQuery build (Term term)