Searched defs:second (Results 1 - 11 of 11) sorted by relevance

/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/
H A DSuggestWordFrequencyComparator.java28 public int compare(SuggestWord first, SuggestWord second) { argument
30 if (first.freq > second.freq) {
33 if (first.freq < second.freq) {
37 // second criteria (if first criteria is equal): the score
38 if (first.score > second.score) {
41 if (first.score < second.score) {
45 return second.string.compareTo(first.string);
H A DSuggestWordScoreComparator.java27 public int compare(SuggestWord first, SuggestWord second) { argument
29 if (first.score > second.score) {
32 if (first.score < second.score) {
36 // second criteria (if first criteria is equal): the popularity
37 if (first.freq > second.freq) {
41 if (first.freq < second.freq) {
45 return second.string.compareTo(first.string);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DTopDocs.java93 // Returns true if first is < second
94 public boolean lessThan(ShardRef first, ShardRef second) { argument
95 assert first != second;
97 final float secondScore = shardHits[second.shardIndex][second.hitIndex].score;
105 if (first.shardIndex < second.shardIndex) {
107 } else if (first.shardIndex > second.shardIndex) {
112 assert first.hitIndex != second.hitIndex;
113 return first.hitIndex < second.hitIndex;
158 // Returns true if first is < second
160 lessThan(ShardRef first, ShardRef second) argument
[all...]
H A DFieldComparator.java91 * @param slot2 second slot to compare
166 /** Returns -1 if first is less than second. Default
172 public int compareValues(T first, T second) { argument
174 if (second == null) {
179 } else if (second == null) {
182 return ((Comparable<T>) first).compareTo(second);
689 public int compareValues(Float first, Float second) { argument
692 return second.compareTo(first);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/fst/
H A DOutputs.java65 public T merge(T first, T second) { argument
H A DUpToTwoPositiveIntOutputs.java30 * input/output added to Builder, and .second is the
31 * second. You cannot store 0 output with this (that's
45 public final long second; field in class:UpToTwoPositiveIntOutputs.TwoLongs
47 public TwoLongs(long first, long second) { argument
49 this.second = second;
51 assert second >= 0;
56 return "TwoLongs:" + first + "," + second;
63 return first == other.first && second == other.second;
98 get(long first, long second) argument
221 merge(Object first, Object second) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DMissingStringLastComparatorSource.java107 public int compareValues(String first, String second) { argument
109 if (second == null) {
114 } else if (second == null) {
117 return first.compareTo(second);
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestQPHelper.java774 // set second field specific date resolution
1208 int hour, int minute, int second, IndexWriter iw) throws IOException {
1212 cal.set(year, month - 1, day, hour, minute, second);
1207 addDateDoc(String content, int year, int month, int day, int hour, int minute, int second, IndexWriter iw) argument
H A DTestQueryParserWrapper.java752 // set second field specific date resolution
1168 int hour, int minute, int second, IndexWriter iw) throws IOException {
1172 cal.set(year, month - 1, day, hour, minute, second);
1167 addDateDoc(String content, int year, int month, int day, int hour, int minute, int second, IndexWriter iw) argument
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/queryParser/
H A DQueryParserTestBase.java662 // set second field specific date resolution
1076 int day, int hour, int minute, int second, IndexWriter iw) throws IOException {
1080 cal.set(year, month-1, day, hour, minute, second);
1075 addDateDoc(String content, int year, int month, int day, int hour, int minute, int second, IndexWriter iw) argument
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/queryParser/
H A DQueryParserTestBase.java654 // set second field specific date resolution
1068 int day, int hour, int minute, int second, IndexWriter iw) throws IOException {
1072 cal.set(year, month-1, day, hour, minute, second);
1067 addDateDoc(String content, int year, int month, int day, int hour, int minute, int second, IndexWriter iw) argument

Completed in 33 milliseconds