Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1098

FTS: SearchRow missing fragments and field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 3.0.9
    • None
    • None
    • 1

    Description

      FTS SearchOptions need to be cleaned up.  When fields are passed in w/ the SearchOptions the SearchRow object does not populate the fields property.

      Test Coverage should be increased as well.

       

      Example:

      result = cluster.search_query("couchmusic2-track-title",
       MatchQuery("rose"),
       SearchOptions(fields=["title","artist"]))
      for row in result.rows():
       print (row)

      Output:

      SearchRow(index='couchmusic2-track-title_578a2582e6cb8c5f_a93e4762', id='track::B57236AD7BE8CF0A5972635C8344045BCEFD1C09', score=8.773009596942243, explanation={}, locations=<couchbase.search.SearchRowLocations object at 0x7f1c47afff28>, fragments={}, fields={})
      SearchRow(index='couchmusic2-track-title_578a2582e6cb8c5f_a93e4762', id='track::C4E17693CFBACB3798BE733457728D60B47D87F3', score=8.773009596942243, explanation={}, locations=<couchbase.search.SearchRowLocations object at 0x7f1c47affd30>, fragments={}, fields={})
      SearchRow(index='couchmusic2-track-title_578a2582e6cb8c5f_a93e4762', id='track::E6E1C17A388C5C269DD2A59A398A3B27FC5F9695', score=8.773009596942243, explanation={}, locations=<couchbase.search.SearchRowLocations object at 0x7f1c478a0160>, fragments={}, fields={})
      SearchRow(index='couchmusic2-track-title_578a2582e6cb8c5f_a93e4762', id='track::EECE575AB75D41467FE172FBA3F0919BC082F214', score=8.773009596942243, explanation={}, locations=<couchbase.search.SearchRowLocations object at 0x7f1c478a0358>, fragments={}, fields={})

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jared.casey Jared Casey
              jared.casey Jared Casey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty