Tabnine Logo
SortField.needsScores
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.lucene/lucene-core

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: org.infinispan/infinispan-embedded-query

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: harbby/presto-connectors

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: org.codelibs.elasticsearch.module/lang-expression

  throw new ParseException("Field [" + fieldname + "] must be numeric, date, or geopoint", 5);
needsScores |= valueSource.getSortField(false).needsScores();
bindings.add(variable, valueSource.asDoubleValuesSource());
org.apache.lucene.searchSortFieldneedsScores

Javadoc

Whether the relevance score is needed to sort documents.

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
  • getFactory
  • hashCode,
  • getFactory,
  • getLocale,
  • initFieldType,
  • rewrite

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ImageIO (javax.imageio)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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