Hi, I've indexed Book Title,Author Name,Contents and some other fields. Previously I gave option to search string in any of those fields and I displayed results from getting fields "Title","Author Name","Contents" from hits resulted docs. Now I want to display "Title" & "Author Name" list which have search string in "Contents" field.
For example Title : The J2EE Tutorial Author Name : Stephanie Bodoff Contents : Enterprise Beans,A Message-Driven Bean Example .............etc............ Title : The Advanced J2EE Author Name : Stephanie Bodoff Contents : A Session Bean Example, .............etc............ Title : Guide to Computer Security Management Author Name : Karen Kent Contents : Management Infrastructure,Management Planning,Management Operational Processes Example .............etc............ If I search the string Example , it'll return 3 docs. I want those 3 Contents values with Title value , but I don't need duplicated Author Names (need unique details). So I need 2 Author Name fields. To achieve this I've used 2 lucene queries 1.query with Contents:example & get only Title and Contents fields for that search string. 2. same query with DuplicateFilter("Author Name") and get only unique Author Names. Is there any other ways available during indexing or searching? Thanks RSK