Case-Insensitive Lucene Query

665 views
Skip to first unread message

Martin

unread,
Mar 2, 2015, 8:59:24 AM3/2/15
to aureliu...@googlegroups.com
Hello everyone,

I'm trying to do a direct index query with Titan 0.4.5. using Lucene. The query contains a regular expression like so:

titanGraph.indexQuery("search", "v.name:/expression/")


The problem is that this search appears to be case-sensitive. For better usability of my application, I would prefer case-insensitive matches. Is there a way to do this? I wouldn't mind if *all* searches on my indexer were case-insensitive, so if I can configure the indexer to behave that way in the titan config, I would be happy to do so.


Thank you,


Martin

Austin Sharp

unread,
Mar 3, 2015, 12:18:50 PM3/3/15
to aureliu...@googlegroups.com
Pretty sure this is a Lucene issue, and has nothing to do with Titan (since you're doing a direct index query, the query gets passed straight to the external index backend).

For example, see: http://stackoverflow.com/questions/5512803/how-to-make-lucene-be-case-insensitive
Reply all
Reply to author
Forward
0 new messages