adesh singh adesh singh -4 years ago 93
Java Question

search on non analyzed field using lucene

I am trying to search using Apache Lucene index. For it i have created Lucene index on a field
filepath which is showing the path and it is not analyzed .

Now i am not able to search on the non analyzed field . Is it possible to search on non analyzed field . or is there any way to stop the splitting of the words to be store while analyzed.

Answer Source

Is it possible to search on non analyzed field

In order to search non-analyzed fields, you need to use phrase query.

or is there any way to stop the splitting of the words to be store while analyzed

Sorry, I don't get this. If a field is not analyzed, it is neither split and stored as is. Can you clarify your question?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download