Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8288

Attach Lucene Documents to the Results(Hits) if header contains RETURN_LUCENE_DOCS=true

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.15.0
    • camel-lucene
    • None
    • Unknown

    Description

      Current Hits result only contains the lucene docId, score and assuming there will be a field with the name "contents".
      This feature will allow specifying a new header value

       .setHeader("RETURN_LUCENE_DOCS",constant("true"))
      

      and return the actual lucene documents part of the Hits for further processing. This will allow us to retrieve any field from the actual lucene document.

      Both Lucene component and LuceneQueryProcessor should support this new header.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            krantiparisa Kranti Parisa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: