Re: Lucene search question

2009-01-19 Thread Anshum
Hi Namrata, As far as results are concerned, it depends on the analyzer you use and the query formation [was a trivial answer]. About the specific cases: 1. RG Heights : would not under any normal circumstances fetch you any results unless you index all variations. You could create a custom analyz

Re: Lucene search question

2007-11-13 Thread Grant Ingersoll
On Nov 13, 2007, at 11:59 AM, Steven D. Majewski wrote: Lucene is great at finding documents, but not quite as good at finding things IN documents. The index contains pointers to the terms, but they are pointers to a token in the parsed token stream, so to find a character index into a file

Re: Lucene search question

2007-11-13 Thread Steven D. Majewski
On Nov 13, 2007, at 7:21 AM, Cláudio Fernandes wrote: Hello all, I don't know if this is a somehow naive question, but here we go: Does Lucene support index by sections? Like having a text document with three sections divided by XML tags indexed in a way we could do a search by work and s

Re: Lucene search question

2007-11-13 Thread Erick Erickson
If you only have a maximum of a few sections, then indexing as different fields should work fine. If you have a big upper limit you might need to do something like index all the data in one field with a special marker (e.g. $$$) between sections, then use termdocs/termenum on the result set to

Re: Lucene search question

2007-11-13 Thread Cláudio Fernandes
Hi, On Tue, 2007-11-13 at 07:32 -0500, Grant Ingersoll wrote: > Yes, your application can do this using Lucene. Lucene is a low level > search enabling library, it is up to your application to give meaning > to what you put in it. > > One way doing what you want is to give each section its o

Re: Lucene search question

2007-11-13 Thread Grant Ingersoll
Yes, your application can do this using Lucene. Lucene is a low level search enabling library, it is up to your application to give meaning to what you put in it. One way doing what you want is to give each section its own Field for any given document. Cheers, Grant On Nov 13, 2007, at 7

RE: Lucene search question

2007-11-13 Thread Chhabra, Kapil
If its only about the search, you could have "section" as just another field in your index. You could simply search on work as "well" as "section". Otherwise, if you are looking at aggregating category hits, then look at http://mail-archives.apache.org/mod_mbox/lucene-java-user/200605.mbox/[EMAI