Hi Team,

I am new to Lucene and been exploring Lucene 7.4.0  for past few months.

please take a look at attached IndexFiles.java, in which I am indexing all
the files present under specified folder. also for every document, a field
namely ashish is stored.

now the indexing is ready, I am trying to search it via TermQuery api.
code(SearchFiles_Mine.java) for the same is also attached.


My issue is when I use TermQuery I get 0 hit where as if same thing is
tried via QueryParser api it gives 10 hit.

why is this happening? will you explain the functionality TermQuery API, in
the context of my code ?

regards,
Ashish Parab
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to