Detecting index existance

2006-06-13 Thread Eduardo S. Cordeiro
Hi there, I'm just starting up with Lucene after reading bits and pieces from Gospodnetic and Hatcher's "Lucene in Action" (and noticing the API has changed for 2.0.0). My question is this: is there a way to detect whether or not the index exists? I'm currently developing a web application that

Re: Detecting index existance

2006-06-13 Thread Eduardo S. Cordeiro
Hi, Kent's suggestion worked (in fact, I had looked for such a method in other classes of the API -- forgot to look in IndexReader). It works just as expected :) Thanks again On 6/13/06, Erick Erickson <[EMAIL PROTECTED]> wrote: Well, I just tried it (opening an IndexSearcher) and got this ex

Search with accents

2006-08-01 Thread Eduardo S. Cordeiro
Hello there, I have a brazilian portuguese index, which has been analyzed with BrazilianAnalyzer. When searching words with accents, however, they're not found -- for instance, if the index contains some text with the word "maçã" and I search for that very word, I get no hits, but if I search "ma

Re: Search with accents

2006-08-01 Thread Eduardo S. Cordeiro
Yes...here's how I create my QueryParser: QueryParser parser = new QueryParser("text", new BrazilianAnalyzer()); 2006/8/1, Zhang, Lisheng <[EMAIL PROTECTED]>: Hi, Have you used the same BrazilianAnalyzer when searching? Best regards, Lisheng -Original Message

Re: Search with accents

2006-08-02 Thread Eduardo S. Cordeiro
ords with accents. In my case "saúde" -- Leandro Rodrigo Saad Cruz CTO - InterBusiness Technologies db.apache.org/ojb guara-framework.sf.net xingu.sf.net On 8/1/06, Eduardo S. Cordeiro <[EMAIL PROTECTED]> wrote: > > Yes...here's how I create my QueryParser: > > QueryParser

Re: Search with accents

2006-08-03 Thread Eduardo S. Cordeiro
aad Cruz CTO - InterBusiness Technologies db.apache.org/ojb guara-framework.sf.net xingu.sf.net On 8/2/06, Eduardo S. Cordeiro <[EMAIL PROTECTED]> wrote: > > But was your index created with BrazilianAnalyzer? Because otherwise > you wouldn't have portuguese stopwords eliminat