Skip to content

Commit

Permalink
Search / Remove resource type criteria from language detection (as it…
Browse files Browse the repository at this point in the history
… push to always detect english).
  • Loading branch information
François Prunayre committed Jul 28, 2014
1 parent 4efac1b commit 4b60156
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -110,13 +110,18 @@ public Map<String, Set<String>> getSearchCriteria() {
return searchCriteria;
}

/**
* List of fields to exclude from language detection.
* TODO: should be lucene-config.xml
*/
public static final List<String> NO_TEXT_FIELDS = Arrays.asList(
SearchParameter.UUID,
SearchParameter.PARENTUUID,
SearchParameter.OPERATESON,
SearchParameter._SCHEMA,
SearchParameter.RELATION,
SearchParameter.SITEID,
SearchParameter.TYPE,
SearchParameter.HASFEATURECAT
);

Expand Down

0 comments on commit 4b60156

Please sign in to comment.