Hey Jeff, I didn´t had any luck, I don´t think you´re approach is going to help me, thanks for the reply. I´ll try a solution that does not require this kind of problem.
[]s Rossini On 7/29/07, Jeff French <[EMAIL PROTECTED]> wrote: > > > Rossini, have you had any luck with this? I don't know if this solves > your > exact problem, but could you do something like this: > > 1. Use Analyzer.getPositionIncrementGap to create a gap (let's say 100) > between your fieldA's. > 2. Then query like this: > > fieldA:("termA termB"~99) > > I did this playing around with table cells, and it seems to work so far. > > Jeff > > > rossini wrote: > > > > 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. > > > -- > View this message in context: > http://www.nabble.com/Search-terms-on-a-single-%22instance%22-of-field-tf4153674.html#a11855658 > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >