Hi all, Recently I run into issue indexing and searching path value.
For example, I have field with solr type "string". I tried to store a file path with value '\\root\path1\path2'. After successfully indexing, I checked via Solr Admin UI and see the value is '\\\\root\\path1\\path2'. Apparently Solr/Lucense added the escape character '\' automatically to '\' in original value. And to search this value, I have to manually added '\' to my search term. I am wondering why Solr add it automatically during indexing and I have to add it manual during query. My issues with it is that even I added the escape '\' manually, it wont' work in join query (search in subdocuments). I am aware Lucene/Solr has some special characters such as + - && || ! ( ) { } [ ] ^ " ~ * ? : \ / . But when I tried different characters, Solr only adds escape character '\' to special character '"' and '\'. For the rest, the value in index is as is without escape character '\'. Here is my testing value (a^b:c\d~e&f+ag"h\i*j-k[l?m|n} In solr index, the value is (a^b:c\\d~e&f+ag\"h\\i*j-k[l?m|n} Does anyone has the experience indexing and search value of file path? Thanks, SZ -- View this message in context: http://lucene.472066.n3.nabble.com/Index-and-Search-file-path-tp4281112.html Sent from the Solr - User mailing list archive at Nabble.com.