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 page. How can I go about doing that? Thanks!
How to allow only one find per document searched on Lucene
77 views Asked by abitnew At
1
There are 1 answers
Related Questions in LUCENE
- How to update Cassandra Lucene index with a new column? rebuild or update index?
- How to glue (merge) files Lucene?
- Apache Lucene performance estimation
- Lucene DocValues.Source deprecated
- Solr score diff in doc list and Explain score
- How do I reload the index before searching in Hibernate Lucene
- Using Lucene 9.10.0 MemoryIndex in Java to ingest and search IntField and use rangequery
- How can i use a builtin analyzer in my entity with Hibernate Search
- Atlas Search Index Build Fail
- how to use hiberanate search 7.1.0 analyzer settin in spring boot 3
- Suggester template Search issue ElasticSearch
- I'm using hibernate text based search and indexing. I want to search common rows between indexed tables using Lucene query
- Merging Solr index stored in HDFS not working
- Can't find document at lucene index with no delimeter in phrase
- How do I get the list of the full indexed terms in an ElasticSearch index?
Related Questions in FRAGMENT
- How do I fix fragment overlaping with main_activity fragment in Kotlin
- Impossible to change a fragment's TextView
- when clicking on the note in my app it doesnt open and doesnt throw an error code
- Material date picker not showing
- Using bcosca/fat-free framework with HTMX: Is there a way to render a template fragment?
- Animation onAnimationEnd not called when Fragment onPause
- I have an error about switching between fragments
- MenuProvider: What is the equivalent of invalidateOptionsMenu?
- Keep activity in immersive mode
- Can I launch Play Store Review Flow from a Fragment?
- Access button in MainActivity from fragment
- Fragment upon fragment
- Second level child fragment hides the parent fragment
- Open bottomsheetdialogfragment Via Interface callback inside library
- select on table dbroom doesn't read item previously inserted in table
Related Questions in LUCENE-HIGHLIGHTER
- Hibernate Search 6 with Lucene Highlighter and Synonym List
- Plain Highlighter "order":"none" is not working in Elasticsearch
- I am getting NoClassDefFoundError even when CommonTermsQuery is included in the jar and i can see it in the build path. What could be the issue?
- Lucene Highlighter TokenStream exception
- solr pdf search highlighting issue
- Lucenenet 4.8.0.0 Highlighting Example
- How can I improve performance of Lucene Highlighter operations?
- Lucene 5.3 Highlighter getBestFragments() not working
- Lucene MultiFieldQueryParser and Highlighter
- ElasticSearch highlighting the matched part in query
- how to get paragraph response from search in lucene?
- How to use Lucene FastVectorHighlighter on multiple fields?
- Retrieve text in Lucene proximity query
- Lucene - Highlighter throwing exception when using * on search
- How to highlight query instead of highlighting search results in lucene.net?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You get only one fragment per document returned from the search by calling
getBestFragment, rather thangetBestFragments.If your call to search is returning the same documents more than once, you very likely have more than one copy of the same document in your index. Make sure that if you intend to create a new index, you open your
IndexWriterwith it'sOpenModeset to:IndexWriterConfig.OpenMode.CREATE.