Skip to content
Browse files

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

  • Loading branch information...
1 parent 38a9679 commit fc2b05d6caad1dfcfdf21b7d89d66c70073985d2 @bleskes committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/leskes/elasticfacets/fields/HashedStringFieldData.java
View
2 src/main/java/org/leskes/elasticfacets/fields/HashedStringFieldData.java
@@ -248,7 +248,7 @@ public static String findTermInDoc(int termHash, int docId, String indexFieldNam
". You can only use stored fields or when you store the original document under _source");
}
- private static String analyzeStringForTerm(String fieldValue, int termHash, String indexFieldName, Analyzer fieldIndexAnalyzer) {
+ public static String analyzeStringForTerm(String fieldValue, int termHash, String indexFieldName, Analyzer fieldIndexAnalyzer) {
TokenStream stream = null;
if (HashedStringFieldType.hashCode(fieldValue) == termHash)
return fieldValue; // you never know :)

0 comments on commit fc2b05d

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