Questions tagged [lucene-highlighter]

36 questions
0
votes
1 answer

How to use Lucene FastVectorHighlighter on multiple fields?

I've got a basic search working, and I'm highlighting using FastVectorHighlighter. When you ask the highlighter for a "best fragment" you have a few overloads of getBestFragment(s) to choose from, documented here. I'm now using the simplest one,…
Rob N
  • 15,024
  • 17
  • 92
  • 165
0
votes
1 answer

Retrieve text in Lucene proximity query

I'm using Lucene to index a set of sentences. My queries are with two "entities" and i create a proximity query like this: "EntityA EntityB"~22 and i want to retrieve all the sentences that contains this two entities in maximum range of 22…
miccia4
  • 184
  • 10
0
votes
2 answers

Lucene - Highlighter throwing exception when using * on search

I'm using Lucene 4.6.1 and Highlighter 4.6.0. Since indexing is working properly, I'm just gonna show my search code: ... code to get all the fields' name/values, numDocs, etc. ... // Create Query and search try { …
lucasdc
  • 1,032
  • 2
  • 20
  • 42
0
votes
1 answer

Lucene's Highlighter.getBestFragments method return empty string when a query contains forward slash

I have an application in which Highlighter.getBestFragments return correctly when a query like "fulltext:rajath AND filepath:rajath" is entered. However if the same query contain a "/" in the filepath is entered, meaning if the query is like…
Rajath
  • 215
  • 5
  • 13
0
votes
1 answer

How to allow only one find per document searched on Lucene

I only want my Lucene search to give the highest scoring highlighted fragment per document. So say I have 5 documents with the word "performance" on each one three times, I still only want 5 results to be printed and highlighted to the results…
abitnew
  • 245
  • 2
  • 4
  • 10
0
votes
2 answers

Does a pom.xml.template tell me everything I need to know to use the project as a dependency

I'm trying to add the lucene sandbox contribution called term-highlighter to my pom.xml. I'm not really that familiar with Maven, but the code has a pom.xml.template which seems to imply if I add a dependency that looks like:
dlamblin
  • 43,965
  • 20
  • 101
  • 140
1 2
3