Core: revise and extend search API
At the moment CoreService
offers:
Topic getTopicByValue(String key, SimpleValue value);
List<Topic> getTopicsByValue(String key, SimpleValue value);
The former (singular) method interprets a string value
as literal.
The latter (plural) method interprets a string value
as a Lucene query (see http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html).
2 problems here:
- Bad method names. Both methods are named almost identical despite their semantics is drastically different in terms of how
value
is interpreted. - What is missing is a plural method that interprets a string
value
as literal. This is a requirement for #238 (closed) and #240 (closed).