Re: Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
Adding positionIncrementGap="1" to the fields worked for me. I didn't re-index all the existing docs so it works for only future documents. On Mon, Apr 28, 2014 at 3:54 PM, Ahmet Arslan wrote: > > > Hi Vijay, > > It is a index time setting so yes solr restart and re-indexing is > required. So

Re: Issue with SpanQuery

2014-04-28 Thread Ahmet Arslan
Hi Vijay, It is a index time setting so yes solr restart and re-indexing is required. So A small test case would be handy On Tuesday, April 29, 2014 1:35 AM, Vijay Kokatnur wrote: Thanks Ahmet, I'll give that a try.  Do I need to re-index to add/update positionIncrementGap? On Mon, Apr

Re: Issue with SpanQuery

2014-04-28 Thread Ethan
I tried testing with positionIncrementGap but that didn't work. The values I passed for it were 0, 1, 4,100. Reindexing also didn't help. On Mon, Apr 28, 2014 at 3:34 PM, Vijay Kokatnur wrote: > Thanks Ahmet, I'll give that a try. Do I need to re-index to add/update > positionIncrementGap? >

Re: Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
Thanks Ahmet, I'll give that a try. Do I need to re-index to add/update positionIncrementGap? On Mon, Apr 28, 2014 at 3:31 PM, Ahmet Arslan wrote: > Hi, > > I would add positionIncrementGap to fieldType definitions and experiment > with different values. 0, 1 and 100. > > > positionIncrementG

Re: Issue with SpanQuery

2014-04-28 Thread Ahmet Arslan
Hi, I would add positionIncrementGap to fieldType definitions and experiment with different values. 0, 1 and 100. Same with OrderLineType too On Tuesday, April 29, 2014 1:25 AM, Vijay Kokatnur wrote: Hey Ehmet, Here is the field def - On Mon, Apr 28, 2014 at 3:19 PM, Ahme

Re: Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
Hey Ehmet, Here is the field def - On Mon, Apr 28, 2014 at 3:19 PM, Ahmet Arslan wrote: > Hi, > > Can you paste your field definition of BookingRecordId and OrderLineType? > It could be something related to positionIncrementGap. > > Ahmet > > > > On Tuesday, April 29, 2014 12:58 AM,

Re: Issue with SpanQuery

2014-04-28 Thread Ahmet Arslan
Hi, Can you paste your field definition of BookingRecordId and OrderLineType? It could be something related to positionIncrementGap. Ahmet On Tuesday, April 29, 2014 12:58 AM, Ethan wrote: Facing the same problem!! I have noticed it works fine as long as you're looking up the first index pos

Re: Issue with SpanQuery

2014-04-28 Thread Ethan
Facing the same problem!! I have noticed it works fine as long as you're looking up the first index position. Anyone faced similar problem before? On Mon, Apr 28, 2014 at 12:22 PM, Vijay Kokatnur wrote: > I have been working on SpanQuery for some time now to look up multivalued > fields and fou

Issue with SpanQuery

2014-04-28 Thread Vijay Kokatnur
I have been working on SpanQuery for some time now to look up multivalued fields and found one more issue - Now if a document has following lookup fields among others "*BookingRecordId*": [ "100268421", "190131", "8263325" ], "*OrderLineType*": [ "13", "1", "11" ], Here is the query I construc