Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-243

Terrier query language does not document multi-term field search syntax FIELD:(term1 term2)

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: None
    • Labels:
      None

      Description

      Documentation is missing for multi-term field search.

      Search syntax of the form FIELD:(term1 term2) is supported.

      A junit test case for this has been added to TestMatching, namely testFourDocumentsFieldIndexMatching(), which tests field retrieval, including this case.

        Attachments

          Activity

          richardm Richard McCreadie created issue -
          Hide
          richardm Richard McCreadie added a comment -

          Committed fix to TRECQuerying at revision 3729

          Show
          richardm Richard McCreadie added a comment - Committed fix to TRECQuerying at revision 3729
          richardm Richard McCreadie made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Craig Macdonald [ craigm ] Richard McCreadie [ richardm ]
          Resolution Fixed [ 1 ]
          richardm Richard McCreadie made changes -
          Summary Search should support easy access to perform single-field only queries Terrier query language does not document multi-term field search syntax FIELD:(term1 term2}
          Description Currently the terrier search query language does not make it easy to make single field only queries, especially when the queries are long - each term in the query needs to have field: added in front of it.

          Solution:
             Add an optional property to set search over a single field in the index, e.g.
                 TRECQuerying.singleFieldOnly=true
                 TRECQuerying.singleFieldName=title
          Documentation is missing for multi-term field search.

          Search syntax of the form FIELD:(term1 term2) is supported.

          A junit test case for this has been added to TestMatching, namely testFourDocumentsFieldIndexMatching(), which tests field retrieval, including this case.
          richardm Richard McCreadie made changes -
          Summary Terrier query language does not document multi-term field search syntax FIELD:(term1 term2} Terrier query language does not document multi-term field search syntax FIELD:(term1 term2)
          Hide
          richardm Richard McCreadie added a comment -

          Reverted temporary fix and updated current website documentation cf. http://terrier.org/docs/v3.5/querylanguage.html

          Show
          richardm Richard McCreadie added a comment - Reverted temporary fix and updated current website documentation cf. http://terrier.org/docs/v3.5/querylanguage.html

            People

            • Assignee:
              richardm Richard McCreadie
              Reporter:
              richardm Richard McCreadie
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: