Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Exposed a method to search for a term hash in a string.

  • Loading branch information...
commit fc2b05d6caad1dfcfdf21b7d89d66c70073985d2 1 parent 38a9679
Boaz Leskes authored
2  src/main/java/org/leskes/elasticfacets/fields/HashedStringFieldData.java
@@ -248,7 +248,7 @@ public static String findTermInDoc(int termHash, int docId, String indexFieldNam
248 248 ". You can only use stored fields or when you store the original document under _source");
249 249 }
250 250
251   - private static String analyzeStringForTerm(String fieldValue, int termHash, String indexFieldName, Analyzer fieldIndexAnalyzer) {
  251 + public static String analyzeStringForTerm(String fieldValue, int termHash, String indexFieldName, Analyzer fieldIndexAnalyzer) {
252 252 TokenStream stream = null;
253 253 if (HashedStringFieldType.hashCode(fieldValue) == termHash)
254 254 return fieldValue; // you never know :)

0 comments on commit fc2b05d

Please sign in to comment.
Something went wrong with that request. Please try again.