congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SortField.initFieldType
Code IndexAdd Tabnine 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)

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, 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 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.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.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, 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, 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.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, 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.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.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 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 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;
}
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
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Collectors (java.util.stream)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now