I'm using Apache Lucene 5.5.3. I'm using org.apache.lucene.analysis.standard.StandardAnalyz er in my code and using below code snippet to create index.

Document doc = new Document();

doc.add(new TextField("userName", getUserName(), Field.Store.YES));
Now if I search for a string 'ALL-' , then I'm not getting any search results but if I search for a string 'ALL-Categories', then I'm getting some search results.

The same thing is happening for a string with special characters '+' , '.', '!' etc.

So, Please suggest me on this.