npm @elastic/search-ui-app-search-connector 0.5.0
v0.5.0

latest releases: 1.22.0, 1.21.5, 1.21.4...
6 years ago

#90
#8
#15
#107
#114

Breaking changes:

Before:

// Results were contained in wrapper objects.
ResultList {
  rawResults: [], // List of raw `results` from JSON response
  rawInfo: { // Object wrapping the raw `meta` property from JSON response
    meta: {}
  },
  results: [ResultItem], // List of `results` wrapped in `ResultItem` type
  info: { // Currently the same as `rawInfo`
    meta: {}
  }
}

ResultItem {
  getRaw(fieldName), // Returns the HTML-unsafe raw value for a field, if it exists
  getSnippet(fieldName) // Returns the HTML-safe snippet value for a field, if it exists
}

After:

// Results are now just an array of raw response result items
ex.
[{
 title: {
   raw: "War and Peace",
   snippet: "War and <em>Peace</em>"
 } 
}]

Before:

[
  {
    "states": [
      "California"
    ]
  },
  {
    "acres": [
      {
        "to": 1000,
        "from": 0,
        "name": "Small"
      }
    ]
  }
]

After:

[
  {
    "field": "states",
    "values": [
      "California"
    ],
    "type": "all"
  },
  {
    "field": "acres",
    "values": [
      {
        "to": 1000,
        "from": 0,
        "name": "Small"
      }
    ],
    "type": "all"
  }
]
  • Connectors have a completely different interface. They now accept state
    directly and return state, rather than App Search syntax. If you had
    created a custom connector, you will need to rework your solution. More details
    on this are documented in the "Creating your own Connector" section of
    the README. This will only affect you if you've created a custom connector.
  • Facet component views have been renamed:
    • SingleRangeSelectFacet > SingleSelectFacet
    • MultiValueFacet > MultiCheckboxFacet
    • SingleValueLinksFacet > SingleLinksFacet

Don't miss a new search-ui-app-search-connector release

NewReleases is sending notifications on new releases.