Greetings,
Currently we have a field stored in the index as comma separated values, so the field looks something like this:
07a6d7137fc3c60e035011619b8e652c,e92ae301f19f0f0680e685ae91dfa6b2,ab5deecf01de4bb95f9717420babe25b
We want to be able to perform an exact match search on one of the values, like this:
Code:
BooleanQuery query = new BooleanQuery();
query.add(new TermQuery(new Term("ids", "e92ae301f19f0f0680e685ae91dfa6b2" )), BooleanClause.Occur.MUST);
..etc
But this will not return any results despite the value existing in the field.
This is how the field is currently mapped:
Code:
@Field(index = org.hibernate.search.annotations.Index.TOKENIZED,store=Store.YES)
@FieldBridge(impl=CollectionToCSVBridge.class)
private Set<String> ids;
Any thoughts on how we can achieve this?