Lucene Auto Index Case Insensitive

381 views
Skip to first unread message

kantube

unread,
Mar 7, 2012, 1:45:24 PM3/7/12
to ne...@googlegroups.com
is it possible to do a case insensitive search on an exact lucene index (auto index)?  Marko asked this same question some time ago http://www.mail-archive.com/us...@lists.neo4j.org/msg07954.html

in the doc i found this
http://docs.neo4j.org/chunked/milestone/indexing-create-advanced.html

and the to_lower_case parameter seems to only work for fulltext and not exact indexes.
i tried the following:
stop service
delete index
start service
POST /db/data/index/node/ {"name":"node_auto_index", "config":{"type":"exact","to_lower_case":"true","provider":"lucene"}}
re-index all nodes

but the index is still case sensitive (not all lower case)

is there a lucene trick to solve this (i searched and could not find one but i am not a lucene expert).
or can you add a setting that will lowercase all auto indexed values and searches such as auto_index_lowercase=true


Peter Neubauer

unread,
Mar 8, 2012, 6:22:10 AM3/8/12
to ne...@googlegroups.com
Hi there,
I don't think you can provide custom config to an autoindex. That
would be a nice feature to add, could you raise an issue? The
autoindex is thought to be not modifiable by the user because it is -
an autoindex. However, configuration could be more flexible, granted.

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/

kantube

unread,
Mar 9, 2012, 9:28:29 AM3/9/12
to ne...@googlegroups.com

Peter Neubauer

unread,
Mar 9, 2012, 10:02:26 AM3/9/12
to ne...@googlegroups.com

Thanks!

On Mar 9, 2012 3:28 PM, "kantube" <mic...@mkanner.com> wrote:
done

https://github.com/neo4j/community/issues/326
Reply all
Reply to author
Forward
0 new messages