Results 1 to 2 of 2
- 12-07-2011, 08:55 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 10
- Rep Power
- 0
how can I find query hit positions in original contents?
Suppose I have a document collection that I have indexed in Lucene. I submit a query and get hits. Now what I want is to find where in a particular document hit(s) occur(s). I know that I can use the Lucene Highlighting classes to obtain relevant fragments. But how can I find out where exactly these fragments appear in the original contents?
A related question is how to make sure the found fragments are actually very close to the original query? I noticed in my experiments with highlighting that often I would have a multi-word query and it would return fragments that would have only some of these words. But what if I want to make sure I get hits with all the words?
Thanks!
- 12-08-2011, 05:26 AM #2
Member
- Join Date
- Nov 2011
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Original JOptionPane Color
By jiffi in forum New To JavaReplies: 9Last Post: 10-14-2011, 01:51 AM -
Close a JFrame, but keep the original open.
By nolsen01 in forum AWT / SwingReplies: 3Last Post: 06-13-2011, 11:28 PM -
Getting to original File location
By ravjot28 in forum New To JavaReplies: 2Last Post: 02-28-2010, 04:00 PM -
How to get(copy) the contents i.e the contents in the cells of an excel sheet
By johnvarg in forum AWT / SwingReplies: 1Last Post: 02-23-2010, 09:48 AM -
Proxy or Original...!
By Shiv in forum New To JavaReplies: 1Last Post: 04-11-2009, 03:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks