Re: PositionIncrementGap inside a field

2012-01-18 Thread maurizio1976
This is actually a *Nested proximity search*. I think the query you wrote there, Mergio, will not work. and I think there is no way in Solr to run a Nested proximity query yet. Do you know anything about that Erik? this is what you want to do: http://www.slideshare.net/MarkHarwood/proposal-for-nes

Re: PositionIncrementGap inside a field

2012-01-17 Thread marotosg
Hi Erik, what I'm trying to achieve here is trying to verify if we can run a query like this: "\""IBM Ltd"~15\" \""Dublin Ireland"~15\""~100 on a field where the gaps are like this: IBM Ireland Ltd *gap of 30* Dublin USA *gap of 300* IBM Ltd *gap of 30* Dublin

Re: PositionIncrementGap inside a field

2012-01-17 Thread Erick Erickson
Hmmm, no I don't know how to do that out of the box. Two things: 1> why do you want to do this? Perhaps if you describe the high-level problem you're trying to solve there might be other ways to approach it. 2> I *think* you could write your own Tokenizer that recognized the special

Re: PositionIncrementGap inside a field

2012-01-17 Thread marotosg
Hi Erick. Thanks for your asnwer. This is almost what i want to do but my problem is that i want to be able to introduce two different sizes of gaps. Something like IBM Corporation some information *gap of 30* more information *gap of 100* IBM Limited more info *ga

Re: PositionIncrementGap inside a field

2012-01-17 Thread Erick Erickson
This is just adding the field repeatedly, something like IBM Corporation some information IBM limited more info multiValued="true"/> > > >   >       IBM Corporation some information *"here a gap"* more information >   >   >      IBM Limited more info "here a gap" and some more data >