Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11679

TraveValueSource & trace() parser

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Won't Do
    • None
    • None
    • None
    • None

    Description

      I whiped up a little TraceValueSource and trave() function parser to help demonstrate how/when the ValueSource API was used by the FunctionRangeQParser for the purposes of a blog post i'm about to publish.

      Essentially it just writes a log message with some tracing details everytime one of the FunctionValue methods (ie: exists, intVal, floatVal, etc...) are called, so that when used from FunctionRangeQParser you can see how things like cost and post-filtering impact things.

      I don't think there is a lot of value in committing the code as is – it would be dangerously verbose on non trivial indexes – but i wanted to put the patch in jira in case it inspires anyone with a more interesting idea.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment