Re: Removing terms in the Index

2010-04-14 Thread Shai Erera
I'm still not sure I understand ... If the first document includes "Lucene in Action. Lucene" (two sentences, the 2nd one with Lucene only) and the second "Lucene for Dummies", then what exactly do you want to get for the queries "\"Lucene in Action\"" and "\"Lucene\""? If I understand correctly,

Re: Removing terms in the Index

2010-04-14 Thread Railan Xisto
Actually the doc1 with the terms to be searched, has two words "Lucene in Action" and "Lucene". I want when I pass "Lucene in Action", it shows the result and remove the word not to be found when I pass only the term "Lucene". In short, the term "Lucene" not find the phrase "Lucene in Action", sinc

Re: Removing terms in the Index

2010-04-13 Thread Shai Erera
I ran your code. Since I don't have the queries file (Docs/documento.txt), I set this line instead: String termos = "\"Lucene in Action\""; When I set it to \"Lucene\", both documents are found. When I set it to \"Lucene in Action\" only the first document is found. Seems correct to me. Can you

Re: Removing terms in the Index

2010-04-12 Thread Railan Xisto
And the main objective: when I pass the word "Lucene in Action", it find and remove that term of phrase in the Index, for when I pass the 2nd term ("Lucene"), he does not find that phrase anymore, as has been found the "Lucene in Action" . 2010/4/12 Railan Xisto > Ok. There is a piece of code a

Re: Removing terms in the Index

2010-04-12 Thread Railan Xisto
Ok. There is a piece of code attached.. As I already said, I want to pass that when the term "Lucene in Action" he finds only the 1st sentence. 2010/4/10 Shai Erera > Hi. I'm not sure I understand what you searched for. When you search > for "Lucene in action", do you search it with the quote

Re: Removing terms in the Index

2010-04-10 Thread Shai Erera
Hi. I'm not sure I understand what you searched for. When you search for "Lucene in action", do you search it with the quotes or not? If with the quotes, then I don't understand how the 2nd dox is found. Do you perhaps have a test code you can share w/ us? It can be a short and simple main which c