Hi everybody,

Well I will explain you my problem:
I am indexing ".txt" files and basically I split each file in paragraphs, I mean, i create a Document for each file and within this Document I
add one Field named "px" for each paragraph (x) of the file.
My question is: after creating the index, now i want to do searches over the index, but what I want is searching a word over all paragraphs of all files, i.e.
searching the word in all Fields of all Documents.
I am using something like this, but doing so i can only put p1 or p2 or p3 ... in the Field parameter of the parse method, how can i search over all paragraphs??
Query query=QueryParser.parse(q, "   ", new WhitespaceAnalyzer());
Hits hits=is.search(query);

Thanks.

                
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to