Hi, Does anyone know a way of identifying which entry in a multi-value field actually matches during a search? e.g. in this example:
String[] entryList = { "entry one", "entry two", "entry three", "entry four" }; Document doc = new Document(); for (String entry : Arrays.asList(entryList)) { doc.add(new Field("multival-field", entry, Field.Store.NO, Field.Index.NOT_ANALYZED)); } ... iw.addDocument(doc); Then when we query: Query query = new TermQuery(new Term("multival-field", "entry three")); TopDocs hits = searcher.search(query, 10); This should match our Document. At this point is there a way to also find out which entry in the array making up "multival-field" was responsible? Thanks, - Chris