Questions tagged [lucene-highlighter]
36 questions
8
votes
2 answers
Lucene highlighter
How does the Lucene 4.3.1 highlighter work? I want to print out the search results(as the searched word and 8 words after that word) from the document. How can I use the Highlighter class to do that? I have added full txt, html and xml documents…

abitnew
- 245
- 2
- 4
- 10
7
votes
1 answer
Using Lucene Highlighter along with MultiFieldQueryParser
Im using Lucene Highlighter to highlight the matches that I have found in a Lucene Index. Now, my problem is that If I have to search multiple fields of a document, and I need to display the matching text, then how can I get in which field the hit…

mksh15
- 97
- 8
4
votes
1 answer
Lucene Entity Extraction
Given a finite dictionary of entity terms, I'm looking for a way to do Entity Extraction with intelligent tagging using Lucene. Currently I've been able to use Lucene for:
- Searching for complex phrases with some fuzzyness
- Highlighting…

Dima_F
- 43
- 3
3
votes
2 answers
Get starting and end index of a highlighted fragment in a searched field
"My search returns a highlighted fragment from a field. I want to know that in that field of particular searched document, where does that fragment starts and ends ?"
for instance.
consider i am searching "highlighted fragment" in above lines…

Umer
- 1,891
- 5
- 31
- 43
3
votes
0 answers
how to get paragraph response from search in lucene?
I've made a search component in my application with lucene. everything works fine, Indexing, highlighting ,etc. I need now to return a paragraph as my search response and not just limit the result to "fragmentSize" in SimpleSpanFragmenter…

Meysam Karimi
- 31
- 4
3
votes
3 answers
Highlighting fields containing HTML
I have a field that might contain HTML code as a user input. If I use simple highlighter, it does not escape the input before adding the tag. E.g. if the input is
"This is a "
and I search for "caption", I get:
"This is a…

Oliv
- 10,221
- 3
- 55
- 76
2
votes
2 answers
Lucene Fast Vector Highlightor fragments
Im new to Lucene. Is there a way to get the Lucene FVH to return fragments/snippets centered around the search query instead of approximately starting with the search query? Also, Is there a way to tell the FVH fragmenter to fragment only at the…

Nacha
- 107
- 1
- 5
2
votes
0 answers
How to highlight query instead of highlighting search results in lucene.net?
I am searching a lot for this but I couldn't find any solution till now. I have a large query with the combination of proximity search. I need to find out where is the exact location of results in the query. For example a part of query is…

Afrooz
- 21
- 3
2
votes
3 answers
Why are definitions missing ? Lucene.Net 3.0.3 - Fast Vector Highlighter
As a newbie to Lucene.Net/Lucene and to C# I was able to put some lines of code and have a search running.
Now I want to get a snippet of the found area back. I have found below code but Visual Studio keeps telling me that a) "Searcher does contain…

Peter
- 21
- 1
1
vote
2 answers
Symfony and Zend Lucene highlighting
I use symfony 1.4 and I use Zend Lucene search like in Jobbet And I need to make Search Results Highlighting, I read this , but I do not understend how it make in my case with symfony(
$ highlightedHTML = $ query-> highlightMatches…

denys281
- 2,004
- 2
- 19
- 38
1
vote
1 answer
KWIC with lucene 3.1
I study Lucene and there's somtehing i still don't understand.
First, I use the last version of lucene, 3.1.
Then everything works fine but I keep failing to use the Highlighter and the Fragments.
Is anybody know how to use it in the last…

user702428
- 11
- 1
1
vote
1 answer
how to use Lucene highlighter with phraseQuery?
How to use Lucene's Highlighter with phraseQuery ?
I did a google search, and I am getting confused with spanScorer, QueryScorer, and few things like that..
The Lucene version I am using is 3.0.3
My requirements are
- Doing a multi field…

Shrinath
- 7,888
- 13
- 48
- 85
1
vote
2 answers
Solr WordDelimiterFilter + Lucene Highlighter
I am trying to get the Highlighter class from Lucene to work properly with tokens coming from Solr's WordDelimiterFilter. It works 90% of the time, but if the matching text contains a ',' such as "1,500" the output is incorrect:
Expected: 'test…

Lucas
- 14,227
- 9
- 74
- 124
1
vote
0 answers
Lucenenet 4.8.0.0 Highlighting Example
So I want to use the Lucene Highlighter, and I came across this example:
http://www.programcreek.com/java-api-examples/index.php?api=org.apache.lucene.search.highlight.Highlighter
The problem is, I'm using a newer version of Lucene which doesn't…

user3685285
- 6,066
- 13
- 54
- 95
1
vote
1 answer
Lucene.NET highlighter plugin highlighting strangely
I'm trying to add the Lucene.NET Highlighter to my search, however it's doing some really strange highlighting, what am I doing wrong?
Here's the highlighting code:
// stuff here to get scoreDocs
var content =…

Andrew Bullock
- 36,616
- 34
- 155
- 231