Re: Query regarding positionIncrementGap

2019-10-18 Thread Paras Lehana
Hi Shubham, In other words, *you specify a large positionIncrementGap to make sure that your queries don't match across multiple values of a field*. For example, for a query like title:"paper plate making machine", you don't want it to match with doc having two values for title:"paper plate", "ma

Re: Query regarding positionIncrementGap

2019-10-18 Thread Erick Erickson
I really don’t understand the question. The field has to be multiValued, but there’s no other restriction. It’s all about whether a document you input has the same field name specified more than once, i.e. is multiValued. That’s why the example I gave has sentence one sentence two sentenc

Re: Query regarding positionIncrementGap

2019-10-17 Thread Shubham Goswami
Hi Erick Thanks for reply and your example is very helpful. But i think we can only use this attribute if we are getting data from a single field which has the copy of all data from every field. Please correct me if i am wrong. Thanks for your great support. Shubham On Thu, Oct 17, 2019 at 5:56

Re: Query regarding positionIncrementGap

2019-10-17 Thread Erick Erickson
First, it only counts if you add multiple entries for the field. Consider the following a b c def where the field has a positionIncrementGap of 100. The term positions of the entries are a:1 b:2 c:3 d:103 e:104 f:105 Now consider the doc where there’s only one field: a b c d e f T

Query regarding positionIncrementGap

2019-10-16 Thread Shubham Goswami
Hi Community I am a beginner in solr and i am trying to understand the working of positionIncrementGap but i am still not clear how it exactly works for the phrase queries and general queires. Can somebody please help me to understand this with the help fo an example ? Any help will be apprecia