Re: Multi-value fields in Lucene 4.1

2013-03-22 Thread Michael McCandless
You might be able to get close if you use PostingsHighlighter: it tells you the offset of each matched Passage, and you can correlate that to which field value (assuming you stored the multi-valued fields). You must index offsets into your postings. But there are caveats ... if you use positional

Re: Multi-value fields in Lucene 4.1

2013-03-22 Thread Jack Krupansky
uot;. -- Jack Krupansky -Original Message- From: Chris Bamford Sent: Friday, March 22, 2013 5:57 AM To: java-user@lucene.apache.org Subject: Multi-value fields in Lucene 4.1 Hi, If I index several similar values in a multivalued field (e.g. many authors to one book), is there any w

Multi-value fields in Lucene 4.1

2013-03-22 Thread Chris Bamford
Hi, If I index several similar values in a multivalued field (e.g. many authors to one book), is there any way to know which of these matched during a query? e.g. Book "The art of Stuff", with authors "Bob Thingummy" and "Belinda Bootstrap" If we queried for +(author:Be*) and matched this doc