index the whole plain text file's content

2007-04-10 Thread Chen Li
Hello, I used demo code(IndexFiles.java) from lucene to index around 100 text files. 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 a

Re: index the whole plain text file's content

2007-04-10 Thread karl wettin
10 apr 2007 kl. 17.58 skrev Chen Li: 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 SearchFiles.java, which also came with demo code