Codota Logo
SortField.initFieldType
Code IndexAdd Codota to your IDE (free)

How to use
initFieldType
method
in
org.apache.lucene.search.SortField

Best Java code snippets using org.apache.lucene.search.SortField.initFieldType (Showing top 16 results out of 315)

  • Common ways to obtain SortField
private void myMethod () {
SortField s =
  • Codota IconString field;SortField.Type type;new SortField(field, type, reverse)
  • Codota IconSort sort;sort.getSort()
  • Codota IconIndexSearcher searcher;fields[i].rewrite(searcher)
  • Smart code suggestions by Codota
}
origin: org.apache.lucene/lucene-core

/** Creates a sort, possibly in reverse, with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, FieldComparatorSource comparator, boolean reverse) {
 initFieldType(field, Type.CUSTOM);
 this.reverse = reverse;
 this.comparatorSource = comparator;
}
origin: org.apache.lucene/lucene-core

/** Creates a sort, possibly in reverse, by terms in the given field with the
 * type of term values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, Type type, boolean reverse) {
 initFieldType(field, type);
 this.reverse = reverse;
}
origin: org.apache.lucene/lucene-core

/** Creates a sort with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 */
public SortField(String field, FieldComparatorSource comparator) {
 initFieldType(field, Type.CUSTOM);
 this.comparatorSource = comparator;
}
origin: org.apache.lucene/lucene-core

/** Creates a sort by terms in the given field with the type of term
 * values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 */
public SortField(String field, Type type) {
 initFieldType(field, type);
}
origin: org.infinispan/infinispan-embedded-query

/** Creates a sort, possibly in reverse, with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, FieldComparatorSource comparator, boolean reverse) {
 initFieldType(field, Type.CUSTOM);
 this.reverse = reverse;
 this.comparatorSource = comparator;
}
origin: org.infinispan/infinispan-embedded-query

/** Creates a sort by terms in the given field with the type of term
 * values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 */
public SortField(String field, Type type) {
 initFieldType(field, type);
}
origin: harbby/presto-connectors

/** Creates a sort, possibly in reverse, with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, FieldComparatorSource comparator, boolean reverse) {
 initFieldType(field, Type.CUSTOM);
 this.reverse = reverse;
 this.comparatorSource = comparator;
}
origin: harbby/presto-connectors

/** Creates a sort, possibly in reverse, by terms in the given field with the
 * type of term values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, Type type, boolean reverse) {
 initFieldType(field, type);
 this.reverse = reverse;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Creates a sort with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 */
public SortField(String field, FieldComparatorSource comparator) {
 initFieldType(field, Type.CUSTOM);
 this.comparatorSource = comparator;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Creates a sort, possibly in reverse, with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, FieldComparatorSource comparator, boolean reverse) {
 initFieldType(field, Type.CUSTOM);
 this.reverse = reverse;
 this.comparatorSource = comparator;
}
origin: org.infinispan/infinispan-embedded-query

/** Creates a sort with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 */
public SortField(String field, FieldComparatorSource comparator) {
 initFieldType(field, Type.CUSTOM);
 this.comparatorSource = comparator;
}
origin: org.infinispan/infinispan-embedded-query

/** Creates a sort, possibly in reverse, by terms in the given field with the
 * type of term values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, Type type, boolean reverse) {
 initFieldType(field, type);
 this.reverse = reverse;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Creates a sort by terms in the given field with the type of term
 * values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 */
public SortField(String field, Type type) {
 initFieldType(field, type);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Creates a sort, possibly in reverse, by terms in the given field with the
 * type of term values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 * @param reverse True if natural order should be reversed.
 */
public SortField(String field, Type type, boolean reverse) {
 initFieldType(field, type);
 this.reverse = reverse;
}
origin: harbby/presto-connectors

/** Creates a sort with a custom comparison function.
 * @param field Name of field to sort by; cannot be <code>null</code>.
 * @param comparator Returns a comparator for sorting hits.
 */
public SortField(String field, FieldComparatorSource comparator) {
 initFieldType(field, Type.CUSTOM);
 this.comparatorSource = comparator;
}
origin: harbby/presto-connectors

/** Creates a sort by terms in the given field with the type of term
 * values explicitly given.
 * @param field  Name of field to sort by.  Can be <code>null</code> if
 *               <code>type</code> is SCORE or DOC.
 * @param type   Type of values in the terms.
 */
public SortField(String field, Type type) {
 initFieldType(field, type);
}
org.apache.lucene.searchSortFieldinitFieldType

Popular methods of SortField

  • <init>
    Creates a sort, possibly in reverse, by terms in the given field where the type of term value is det
  • getField
    Returns the name of the field. Could return null if the sort is by SCORE or DOC.
  • getReverse
    Returns whether the sort should be reversed.
  • getType
    Returns the type of contents in the field.
  • setMissingValue
    Set the value to use for documents that don't have a value.
  • equals
    Returns true if o is equal to this. If a FieldComparatorSource was provided, it must properly implem
  • getComparator
    Returns the FieldComparator to use for sorting.
  • getComparatorSource
    Returns the FieldComparatorSource used for custom sorting
  • getMissingValue
    Return the value to use for documents that don't have a value. A value of null indicates that defaul
  • toString
  • hashCode
    Returns a hash code for this SortField instance. If a FieldComparatorSource was provided, it must pr
  • needsScores
    Whether the relevance score is needed to sort documents.
  • hashCode,
  • needsScores,
  • getFactory,
  • getLocale,
  • rewrite

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now