/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/ |
H A D | English.java | 28 StringBuilder result = new StringBuilder(); 29 longToEnglish(i, result); 30 return result.toString(); 33 public static void longToEnglish(long i, StringBuilder result) { argument 35 result.append("zero"); 39 result.append("minus "); 43 longToEnglish(i / 1000000000000000000l, result); 44 result.append("quintillion, "); 48 longToEnglish(i / 1000000000000000l, result); 49 result 182 intToEnglish(int i, StringBuilder result) argument [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/ |
H A D | English.java | 28 StringBuilder result = new StringBuilder(); 29 longToEnglish(i, result); 30 return result.toString(); 33 public static void longToEnglish(long i, StringBuilder result) { argument 35 result.append("zero"); 39 result.append("minus "); 43 longToEnglish(i / 1000000000000000000l, result); 44 result.append("quintillion, "); 48 longToEnglish(i / 1000000000000000l, result); 49 result 182 intToEnglish(int i, StringBuilder result) argument [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | TermVectorEntryFreqSortedComparator.java | 28 int result = 0; 29 result = entry1.getFrequency() - entry.getFrequency(); 30 if (result == 0) 32 result = entry.getTerm().compareTo(entry1.getTerm()); 33 if (result == 0) 35 result = entry.getField().compareTo(entry1.getField()); 38 return result;
|
H A D | SegmentTermPositionVector.java | 39 TermVectorOffsetInfo[] result = TermVectorOffsetInfo.EMPTY_OFFSET_INFO; 44 result = offsets[index]; 46 return result; 55 int[] result = EMPTY_TERM_POS; 60 result = positions[index]; 63 return result;
|
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/ |
H A D | SimpleHTMLEncoder.java | 43 StringBuilder result = new StringBuilder(plainText.length()); 52 result.append("""); 56 result.append("&"); 60 result.append("<"); 64 result.append(">"); 70 result.append(ch); 74 result.append("&#").append((int)ch).append(";"); 79 return result.toString();
|
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/util/ |
H A D | CSVUtil.java | 45 ArrayList<String> result = new ArrayList<String>(); 59 result.add(value); 67 result.add(sb.toString()); 74 return result.toArray(new String[result.size()]); 78 String result = original; 81 if (result.indexOf('\"') >= 0) { 84 result = m.group(1); 88 if (result.indexOf(ESCAPED_QUOTE) >= 0) { 89 result [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/snowball/ |
H A D | SnowballAnalyzer.java | 80 TokenStream result = new StandardTokenizer(matchVersion, reader); 81 result = new StandardFilter(matchVersion, result); 85 result = new EnglishPossessiveFilter(result); 88 result = new TurkishLowerCaseFilter(result); 90 result = new LowerCaseFilter(matchVersion, result); 92 result 100 TokenStream result; field in class:SnowballAnalyzer.SavedStreams [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/ |
H A D | SegToken.java | 82 int result = 1; 84 result = prime * result + charArray[i]; 86 result = prime * result + endOffset; 87 result = prime * result + index; 88 result = prime * result + startOffset; 89 result [all...] |
H A D | SegTokenPair.java | 55 int result = 1; 57 result = prime * result + charArray[i]; 59 result = prime * result + from; 60 result = prime * result + to; 63 result = prime * result + (int) (temp ^ (temp >>> 32)); 64 return result; [all...] |
H A D | PathNode.java | 47 int result = 1; 48 result = prime * result + preNode; 51 result = prime * result + (int) (temp ^ (temp >>> 32)); 52 return result;
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | Base64.java | 60 StringBuffer result = new StringBuffer(resultLen); 69 result.append(intToAlpha[byte0 >> 2]); 70 result.append(intToAlpha[(byte0 << 4) & 0x3f | (byte1 >> 4)]); 71 result.append(intToAlpha[(byte1 << 2) & 0x3f | (byte2 >> 6)]); 72 result.append(intToAlpha[byte2 & 0x3f]); 78 result.append(intToAlpha[byte0 >> 2]); 80 result.append(intToAlpha[(byte0 << 4) & 0x3f]); 81 result.append("=="); 85 result.append(intToAlpha[(byte0 << 4) & 0x3f | (byte1 >> 4)]); 86 result [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/example/ |
H A D | TestMultiCLExample.java | 46 FacetResult result = results.get(0); 47 assertNotNull("Result should not be null", result); 48 assertEquals("Invalid label", "5", result.getFacetResultNode() 50 assertEquals("Invalid value", 2.0, result.getFacetResultNode() 52 assertEquals("Invalid # of subresults", 3, result.getFacetResultNode() 55 Iterator<? extends FacetResultNode> subResults = result 70 result = results.get(1); 71 assertNotNull("Result should not be null", result); 72 assertEquals("Invalid label", "5/5", result.getFacetResultNode() 75 result [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestFieldCacheRangeFilter.java | 59 ScoreDoc[] result; 64 result = search.search(q,fcrf = FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,T,T), numDocs).scoreDocs; 66 assertEquals("find all", numDocs, result.length); 68 result = search.search(q,FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,T,F), numDocs).scoreDocs; 69 assertEquals("all but last", numDocs-1, result.length); 71 result = search.search(q,FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,F,T), numDocs).scoreDocs; 72 assertEquals("all but first", numDocs-1, result.length); 74 result = search.search(q,FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,F,F), numDocs).scoreDocs; 75 assertEquals("all but ends", numDocs-2, result.length); 77 result [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestFieldCacheRangeFilter.java | 59 ScoreDoc[] result; 64 result = search.search(q,fcrf = FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,T,T), numDocs).scoreDocs; 66 assertEquals("find all", numDocs, result.length); 68 result = search.search(q,FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,T,F), numDocs).scoreDocs; 69 assertEquals("all but last", numDocs-1, result.length); 71 result = search.search(q,FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,F,T), numDocs).scoreDocs; 72 assertEquals("all but first", numDocs-1, result.length); 74 result = search.search(q,FieldCacheRangeFilter.newStringRange("id",minIP,maxIP,F,F), numDocs).scoreDocs; 75 assertEquals("all but ends", numDocs-2, result.length); 77 result [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/ |
H A D | AbstractField.java | 180 public byte[] getBinaryValue(byte[] result){ argument 257 StringBuilder result = new StringBuilder(); 259 result.append("stored"); 262 if (result.length() > 0) 263 result.append(","); 264 result.append("indexed"); 267 if (result.length() > 0) 268 result.append(","); 269 result.append("tokenized"); 272 if (result [all...] |
H A D | SetBasedFieldSelector.java | 49 FieldSelectorResult result = FieldSelectorResult.NO_LOAD; 51 result = FieldSelectorResult.LOAD; 54 result = FieldSelectorResult.LAZY_LOAD; 56 return result;
|
/lucene-3.6.0/lucene/contrib/spatial/src/test/org/apache/lucene/spatial/ |
H A D | DistanceUtilsTest.java | 36 double[] result = DistanceUtils.vectorBoxCorner(zero, null, Math.sqrt(2), true); 37 assertEquals(1.0, result[0], 0); 38 assertEquals(1.0, result[1], 0); 40 result = DistanceUtils.vectorBoxCorner(zero, null, Math.sqrt(2), false); 41 assertEquals(-1.0, result[0], 0); 42 assertEquals(-1.0, result[1], 0); 44 result = DistanceUtils.vectorBoxCorner(oneOne, null, Math.sqrt(2), true); 45 assertEquals(2.0, result[0], 0); 46 assertEquals(2.0, result[1], 0); 48 result [all...] |
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/ |
H A D | ChainedFilter.java | 129 OpenBitSetDISI result; 136 result = new OpenBitSetDISI(getDISI(chain[index[0]], reader), reader.maxDoc()); 141 result = new OpenBitSetDISI(getDISI(chain[index[0]], reader), reader.maxDoc()); 142 result.flip(0,reader.maxDoc()); // NOTE: may set bits for deleted docs. 147 result = new OpenBitSetDISI(reader.maxDoc()); 149 return result; 159 protected final DocIdSet finalResult(OpenBitSetDISI result, int maxDocs) { argument 160 return result; 173 OpenBitSetDISI result = initialResult(reader, logic, index); 176 doChain(result, logi 215 doChain(OpenBitSetDISI result, int logic, DocIdSet dis) argument [all...] |
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/ |
H A D | CartesianPoint.java | 62 int result = 1; 63 result = prime * result + x; 64 result = prime * result + y; 65 return result;
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/ |
H A D | QueryNodeOperation.java | 65 QueryNode result = null; 71 result = new AndQueryNode(children); 72 return result; 74 result = q1.cloneTree(); 75 result.add(q2.cloneTree()); 76 return result; 78 result = q2.cloneTree(); 79 result.add(q1.cloneTree()); 80 return result; 82 result [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/ |
H A D | FloatEncoder.java | 31 Payload result = new Payload(); 34 result.setData(bytes); 35 return result;
|
H A D | IntegerEncoder.java | 32 Payload result = new Payload(); 35 result.setData(bytes); 36 return result;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/payloads/ |
H A D | PayloadFunction.java | 60 Explanation result = new Explanation(); 61 result.setDescription("Unimpl Payload Function Explain"); 62 result.setValue(1); 63 return result;
|
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/response/ |
H A D | xml.rb | 24 # look for the result code and string 29 result = REXML::XPath.first(@doc, './response/lst[@name="responseHeader"]/int[@name="status"]') 30 if result 31 @status_code = result.text 32 @status_message = result.text # TODO: any need for a message?
|
/lucene-3.6.0/solr/contrib/clustering/src/test/org/apache/solr/handler/clustering/ |
H A D | MockDocumentClusteringEngine.java | 30 NamedList result = new NamedList(); 31 return result; 36 NamedList result = new NamedList(); 37 return result;
|