
rafael.rossini at gmail
Jul 27, 2007, 7:33 AM
Post #3 of 5
(263 views)
Permalink
|
|
Re: Search terms on a single "instance" of field
[In reply to]
|
|
Actually no, Because I'd like to retrieve terms that were computed on the same instance of Field. Taking your example to ilustrate better, I have 2 documents, on documentA I structured one field, Field("fieldA", "termA termB", customAnalyzer). On documentB I structured 2 fields, Field("fieldA", "termA termC", customAnalyzer) and Field("fieldA", "termB termC", customAnalyzer). The problem is, if I search like you suggested, fieldA:termA + fieldA:termB, I will get both documents, but I want only documentA. For that to happen, somehow, somewhere should be an information that tells that on documentA, termA and termB where indexed on the same instance of fieldA. I´m guessing this is not possible, but it would be great if someone has an ideia to solve this. Thanks for the response Ard. []s Rossini On 7/27/07, Ard Schrijvers <a.schrijvers [at] hippo> wrote: > > Hello, > > > > > Company AB", ...). With this I´d like to search for documents that has > > daniel and president on the same field, because in a same > > text, can exist > > daniel and president in different fields. Is this possible?? > > Not totally sure wether I understand your problem, because it does not > sound like a problem at all: > > If you just have a query that looks like: fieldA:termA + fieldA:termB you > are looking for documents which have termA AND termB in fieldA. > > Isn't that all you want/need? > > Regards Ard > > > I know that if > > I had and index where the Document is a phrase like this, it > > would solve my > > problem, but I´d like to stay with only one index. > > > > Hope I made myself clear. > > > > []s > > Rossini > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > >
|