lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Li <>
Subject index the whole plain text file's content
Date Tue, 10 Apr 2007 15:58:19 GMT

I used demo code( from lucene to index around 100 text 

doc.add(new Field("contents", new FileReader(f)));

Which is interesting that, for some larger files (around 500kb), only 
the query term on the top of the file is searchable, once the term is at 
the end or after an unknown point of the file, I couldn't use, which also came with demo code, to find it.

I even tried to convert the file to String and index it as Store.YES. 
But no luck, still same resultset was returned.

Does anybody have same experience to share the solution with me? I would 
so appreciate.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message