Re: problem with payload retrieval in custom query - lucene 5.3.1

2015-12-24 Thread Bob Price
Thanks Adrien! That was the missing piece. Now I can access the payloads. On Thu, Dec 24, 2015 at 8:50 AM, Adrien Grand wrote: > Note that payloads are stored per position, not per document. Maybe the > problem is that you never call docs.nextPosition()? > > Le mer. 23 déc. 2015 à 19:30, Bob P

Re: problem with payload retrieval in custom query - lucene 5.3.1

2015-12-24 Thread Adrien Grand
Note that payloads are stored per position, not per document. Maybe the problem is that you never call docs.nextPosition()? Le mer. 23 déc. 2015 à 19:30, Bob Price a écrit : > Via elasticsearch 2.1 we have written a custom Lucene TokenFilter that adds > a payload to a special term during indexin

problem with payload retrieval in custom query - lucene 5.3.1

2015-12-23 Thread Bob Price
Via elasticsearch 2.1 we have written a custom Lucene TokenFilter that adds a payload to a special term during indexing analysis, and we also have custom Lucene Query/Weight/Scorer classes that compare this payload against some query data to decide if a document matches a query or not. I know that