AnsweredAssumed Answered

Lucene case-sensitive Search

Question asked by tremalnaik on Nov 8, 2011
Latest reply on Apr 15, 2014 by cyr

I'm triying create a Lucene query which has te case-sensitive propertie. My example is like this:

String luceneQuery = "PATH:\"/app:company_home//*\" " + "AND @cm\\:name:\"" +name+"\"";
Query query = new Query(Constants.QUERY_LANG_LUCENE,luceneQuery);
QueryConfiguration q = new QueryConfiguration();

QueryResult queryResult = repositoryService.query(spacesStore, query, true, q);

Where "name" is the word of search. Now, if "name" is equal to test the query returns elements like

  • Test
  • Test1
  • tEst
  • etc
Exists some meaning to make the Lucene case-sensitive? Thanks