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

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.0
    • Component/s: camel-lucene
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: