Re: MultiSearcher to Indexing.

2004-08-12 Thread Vladimir Yuryev
Natarajan, MultiSeacher - it is well, but this a way have pickles. Example, but it is not sample: public Query combine(Query[] queries) throws IOException { if (expandedQueries.length < 2) { return queries[0]; } Query[] combined = new Query[2]; combined[0] = new BooleanQuer

Re: wildcard uppercase

2004-08-12 Thread Erik Hatcher
Query.toString() is your friend! As well as troubleshooting without QueryParser in the picture too. But, Daniel to the rescue :) Erik On Aug 12, 2004, at 5:06 PM, Otis Gospodnetic wrote: My guess would be 'something in the QueryParser', but I don't know for sure. Erik will know he's

RE: wildcard uppercase

2004-08-12 Thread Kipping, Peter
Thanks Daniel, that worked. Peter -Original Message- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 4:06 PM To: Lucene Users List Subject: Re: wildcard uppercase On Thursday 12 August 2004 22:30, Kipping, Peter wrote: > As you can see it's been lower cased

RE: wildcard uppercase

2004-08-12 Thread Otis Gospodnetic
My guess would be 'something in the QueryParser', but I don't know for sure. Erik will know he's the fortunate guy who spent a lot of intimate moments with QueryParser. :) If I were you, I'd throw out QueryParser out of the equation by using the Lucene API (various Query classes) directly, ins

Re: wildcard uppercase

2004-08-12 Thread Daniel Naber
On Thursday 12 August 2004 22:30, Kipping, Peter wrote: > As you can see it's been lower cased and I get no hits. ÂLooks like > something is lowercasing the wildcard query. ÂHow can I make it not do > that? Try QueryParser's setLowercaseWildcardTerms(boolean). Regards Daniel -- http://www.dan

RE: wildcard uppercase

2004-08-12 Thread Kipping, Peter
Correct me if I'm wrong but the WhiteSpace Analyzer doesn't lowercase. As I mentioned in my previous email, that's the one I'm using. When I don't use the wildcard everything works fine: IndexSearcher is = new IndexSearcher("C:/J2EE_Projects/Lucene/indexDirCompound"); PerFieldAnal

Re: wildcard uppercase

2004-08-12 Thread Otis Gospodnetic
Just use an Analyzer that doesn't lowercase. That FAQ entry assumes that the Analyzer does lowercase its input. Searching IS case sensitive, it's just that people often use an Analyzer that lowercases everything (at indexing and at query time), so the search appears not to be case sensitive, and t

wildcard uppercase

2004-08-12 Thread Kipping, Peter
I'm doing wildcard searches on molecular formulas where case is critical. For instance Co = Cobalt, CO = Carbon Monoxide. I've read the faq on this: Yes, unlike other types of Lucene queries, Wildcard, Prefix, and Fuzzy queries are case sensitive. That is because those types of queries are no

Re: newbie: about grouping field

2004-08-12 Thread Ype Kingma
Fernando, On Thursday 12 August 2004 17:44, Wermus Fernando wrote: > Luceners > I have to search a string in 30 fields. I know how to do it in a long > way. I wanna know if exists a shorter way. > > String for searching: what's your name? > Long way: +firstname:what's your name? OR +lastname: wha

newbie: about grouping field

2004-08-12 Thread Wermus Fernando
Luceners I have to search a string in 30 fields. I know how to do it in a long way. I wanna know if exists a shorter way. String for searching: what's your name? Long way: +firstname:what's your name? OR +lastname: what's your name? OR ... A shorter way: (firstname OR lastname OR ):wha

RE: MultiSearcher to Indexing.

2004-08-12 Thread Natarajan.T
Thanks for your response. Ok I can understand the concept . if you have any sample code pls sent it to me. You have any idea about Parallel Searcher pls share to me. -Original Message- From: Terence Lai [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 8:40 PM To: Lucene User

RE: MultiSearcher to Indexing.

2004-08-12 Thread Terence Lai
This is how I do it: IndexSearcher[] is = new IndexSearcher[2]; is[0] = new IndexSearcher(IndexDir1); // first index folder is[1] = new IndexSearcher(IndexDir2); // second index folder MultiSearcher searcher = new MultiSearcher(is); searcher.search(query); I think that the MulitSearcher is onl

Re: boost keywords

2004-08-12 Thread Gerard Sychay
Well, there is always the Lucene wiki. There's not a patterns page per se, but you could start one.. http://wiki.apache.org/jakarta-lucene >>> Leos Literak <[EMAIL PROTECTED]> 08/12/04 02:02AM >>> (It would be useful if there were lucene "patterns" page. E.g. if you wish to do A, then use B prac

MultiSearcher to Indexing.

2004-08-12 Thread Natarajan.T
FYI I have an Indexing files in different folders, in this time how can I doing the Searching process using MultiSearcher. Thanks, Natarajan.

Re: boost keywords

2004-08-12 Thread Leos Literak
Don Vaillancourt napsal(a): It seems like you know very little about Lucene. Is this the case or do you have a more specific problem that should be looked at. Well, I dont consider myself as lucene newbie. ;-) I am just confused with boosting feature and how to use it. Usually when I index some a

Re: boost keywords

2004-08-12 Thread Don Vaillancourt
It seems like you know very little about Lucene.  Is this the case or do you have a more specific problem that should be looked at. Leos Literak wrote: Hi, I use lucene at my webzine to index articles and other materials. I want to add new feature to articles - keywords (author of