Re: Can Lucene tells which field matched ?

2008-11-08 Thread Rafael Cunha de Almeida
On Thu, 6 Nov 2008 01:18:45 -0800 (PST) Dora <[EMAIL PROTECTED]> wrote: > > Hi > > I am new to Lucene and working on a search module for some XML data: > > I need to provide a "search all" able to look in all xml fields. > Apparently Lucene (2.4.0) does not provide such a "search all" facility

Re: How to combine filter in Lucene 2.4?

2008-11-08 Thread Paul Elschot
Timo, You may be looking for class OpenBitSetDisi in the util package, it was made for boolean filter operations on OpenBitSets. Also have a look at the contrib modules, OpenBitSetDisi is used there in two classes that do (precisely?) what you need: contrib/miscellaneous/**/ChainedFilter contrib/q

Re: Lucene and JSP

2008-11-08 Thread Rafael Cunha de Almeida
On Sat, 8 Nov 2008 10:53:43 + "Mindaugas Žakšauskas" <[EMAIL PROTECTED]> wrote: > > How do I keep only one IndexSearcher open for all the searches on my > > website? > > In order to keep your IndexSearcher open, simply do not close it and > serve the reference to the same object instance for

How to combine filter in Lucene 2.4?

2008-11-08 Thread Timo Nentwig
Hi! Since Filter.bits() is deprecated and replaced by getDocIdSet() now I wonder how I am supposed to combine (AND) filters (for facets). I worked around this issue by extending Filter and let getDocIdSet() return an OpenBitSet to ensure that this implementation is used everywhere and casting

Re: Strange behaviour of FrenchAnalyzer when using accents

2008-11-08 Thread lamino
No it doesn't, still gettig the same output... :-( Daniel Naber-10 wrote: > > On Samstag, 8. November 2008, lamino wrote: > >>         String q = "secrétaire"; > > Does it help if you escape it like this: "secr\u00e9taire"? The java > compiler might interpret non-ASCII chars differently, de

Re: Multisearcher

2008-11-08 Thread Mark Miller
Not out of the box, but it's fairly trivial to copy multisesscher and modify it so that a different query goes to each suvsearcher. - Mark On Nov 8, 2008, at 5:45 AM, "Shishir Jain" <[EMAIL PROTECTED]> wrote: Hi, Doc1: Field1, Field2 Doc2: Field1, Field2 If I create Index such that Fie

Multisearcher

2008-11-08 Thread Shishir Jain
Hi, Doc1: Field1, Field2 Doc2: Field1, Field2 If I create Index such that Field1 is stored in index1 and Field2 is stored in index2. Can I use Multisearcher to search for Field1 in index1 and Field2 index2 and get the merged results? Thanks & Regards, Shishir Jain

Re: Strange behaviour of FrenchAnalyzer when using accents

2008-11-08 Thread Daniel Naber
On Samstag, 8. November 2008, lamino wrote: >         String q = "secrétaire"; Does it help if you escape it like this: "secr\u00e9taire"? The java compiler might interpret non-ASCII chars differently, depending on the environment it runs in. Regards Daniel -- http://www.danielnaber.de ---

Re: Lucene and JSP

2008-11-08 Thread Mindaugas Žakšauskas
> How do I keep only one IndexSearcher open for all the searches on my > website? In order to keep your IndexSearcher open, simply do not close it and serve the reference to the same object instance for different HTTP request clients. This can easily be achieved using Singleton wrapper around Ind