/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/spans/ |
H A D | TestPayloadSpans.java | 45 import org.apache.lucene.search.payloads.PayloadHelper; 61 PayloadHelper helper = new PayloadHelper(); 69 stq = new SpanTermQuery(new Term(PayloadHelper.FIELD, "seventy")); 74 stq = new SpanTermQuery(new Term(PayloadHelper.NO_PAYLOAD_FIELD, "seventy")); 84 match = new SpanTermQuery(new Term(PayloadHelper.FIELD, "one")); 90 clauses[0] = new SpanTermQuery(new Term(PayloadHelper.FIELD, "one")); 91 clauses[1] = new SpanTermQuery(new Term(PayloadHelper.FIELD, "hundred")); 104 clauses[0] = new SpanTermQuery(new Term(PayloadHelper.FIELD, "one")); 105 clauses[1] = new SpanTermQuery(new Term(PayloadHelper [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/spans/ |
H A D | TestPayloadSpans.java | 45 import org.apache.lucene.search.payloads.PayloadHelper; 61 PayloadHelper helper = new PayloadHelper(); 69 stq = new SpanTermQuery(new Term(PayloadHelper.FIELD, "seventy")); 74 stq = new SpanTermQuery(new Term(PayloadHelper.NO_PAYLOAD_FIELD, "seventy")); 84 match = new SpanTermQuery(new Term(PayloadHelper.FIELD, "one")); 90 clauses[0] = new SpanTermQuery(new Term(PayloadHelper.FIELD, "one")); 91 clauses[1] = new SpanTermQuery(new Term(PayloadHelper.FIELD, "hundred")); 104 clauses[0] = new SpanTermQuery(new Term(PayloadHelper.FIELD, "one")); 105 clauses[1] = new SpanTermQuery(new Term(PayloadHelper [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/payloads/ |
H A D | DelimitedPayloadTokenFilterTest.java | 76 assertTermEquals("quick", filter, termAtt, payAtt, PayloadHelper.encodeFloat(1.0f)); 77 assertTermEquals("red", filter, termAtt, payAtt, PayloadHelper.encodeFloat(2.0f)); 78 assertTermEquals("fox", filter, termAtt, payAtt, PayloadHelper.encodeFloat(3.5f)); 79 assertTermEquals("jumped", filter, termAtt, payAtt, PayloadHelper.encodeFloat(0.5f)); 82 assertTermEquals("lazy", filter, termAtt, payAtt, PayloadHelper.encodeFloat(5.0f)); 83 assertTermEquals("brown", filter, termAtt, payAtt, PayloadHelper.encodeFloat(99.3f)); 84 assertTermEquals("dogs", filter, termAtt, payAtt, PayloadHelper.encodeFloat(83.7f)); 94 assertTermEquals("quick", filter, termAtt, payAtt, PayloadHelper.encodeInt(1)); 95 assertTermEquals("red", filter, termAtt, payAtt, PayloadHelper.encodeInt(2)); 96 assertTermEquals("fox", filter, termAtt, payAtt, PayloadHelper [all...] |
H A D | TokenOffsetPayloadTokenFilterTest.java | 42 int start = PayloadHelper.decodeInt(data, 0); 44 int end = PayloadHelper.decodeInt(data, 4);
|
H A D | NumericPayloadTokenFilterTest.java | 49 float pay = PayloadHelper.decodeFloat(bytes);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/ |
H A D | TokenOffsetPayloadTokenFilter.java | 47 PayloadHelper.encodeInt(offsetAtt.startOffset(), data, 0); 48 PayloadHelper.encodeInt(offsetAtt.endOffset(), data, 4);
|
H A D | FloatEncoder.java | 25 * @see org.apache.lucene.analysis.payloads.PayloadHelper#encodeFloat(float, byte[], int) 33 byte[] bytes = PayloadHelper.encodeFloat(payload);
|
H A D | IntegerEncoder.java | 26 * See {@link org.apache.lucene.analysis.payloads.PayloadHelper#encodeInt(int, byte[], int)}. 34 byte[] bytes = PayloadHelper.encodeInt(payload);
|
H A D | NumericPayloadTokenFilter.java | 44 thePayload = new Payload(PayloadHelper.encodeFloat(payload));
|
H A D | PayloadHelper.java | 24 public class PayloadHelper { class
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/ |
H A D | TestDelimitedPayloadTokenFilterFactory.java | 28 import org.apache.lucene.analysis.payloads.PayloadHelper; 52 float payFloat = PayloadHelper.decodeFloat(payData); 74 float payFloat = PayloadHelper.decodeFloat(payData);
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/payloads/ |
H A D | TestPayloadTermQuery.java | 123 Field noPayloadField = newField(PayloadHelper.NO_PAYLOAD_FIELD, English.intToEnglish(i), Field.Store.YES, Field.Index.ANALYZED); 160 CheckHits.checkExplanations(query, PayloadHelper.FIELD, searcher, true); 173 PayloadTermQuery boostingFuncTermQuery = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 177 SpanTermQuery spanTermQuery = new SpanTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy")); 181 PayloadTermQuery boostingFuncTermQuery2 = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 188 PayloadTermQuery query = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 227 PayloadTermQuery query = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 270 PayloadTermQuery query = new PayloadTermQuery(new Term(PayloadHelper.FIELD, "junk"), 279 PayloadTermQuery q1 = new PayloadTermQuery(new Term(PayloadHelper.NO_PAYLOAD_FIELD, "zero"), 281 PayloadTermQuery q2 = new PayloadTermQuery(new Term(PayloadHelper [all...] |
H A D | PayloadHelper.java | 46 public class PayloadHelper { class
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/payloads/ |
H A D | TestPayloadTermQuery.java | 123 Field noPayloadField = newField(PayloadHelper.NO_PAYLOAD_FIELD, English.intToEnglish(i), Field.Store.YES, Field.Index.ANALYZED); 160 CheckHits.checkExplanations(query, PayloadHelper.FIELD, searcher, true); 173 PayloadTermQuery boostingFuncTermQuery = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 177 SpanTermQuery spanTermQuery = new SpanTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy")); 181 PayloadTermQuery boostingFuncTermQuery2 = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 188 PayloadTermQuery query = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 227 PayloadTermQuery query = new PayloadTermQuery(new Term(PayloadHelper.MULTI_FIELD, "seventy"), 270 PayloadTermQuery query = new PayloadTermQuery(new Term(PayloadHelper.FIELD, "junk"), 279 PayloadTermQuery q1 = new PayloadTermQuery(new Term(PayloadHelper.NO_PAYLOAD_FIELD, "zero"), 281 PayloadTermQuery q2 = new PayloadTermQuery(new Term(PayloadHelper [all...] |
H A D | PayloadHelper.java | 46 public class PayloadHelper { class
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/shingle/ |
H A D | ShingleMatrixFilter.java | 32 import org.apache.lucene.analysis.payloads.PayloadHelper; 1037 return PayloadHelper.decodeFloat(token.getPayload().getData()); 1051 token.setPayload(new Payload(PayloadHelper.encodeFloat(weight)));
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/ |
H A D | TestShingleMatrixFilter.java | 30 import org.apache.lucene.analysis.payloads.PayloadHelper; 166 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");"); 189 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");"); 237 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");"); 306 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");"); 369 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");"); 464 assertEquals(boost, payloadAtt.getPayload() == null ? 1f : PayloadHelper.decodeFloat(payloadAtt.getPayload().getData()), 0);
|