Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

elasticType is no longer used in ElasticSearch, but unable to un-set #128

Open
@d2a-raudenaerde

Description

const ReservationsESTC = composeWithElastic({
 graphqlTypeName: 'ReservationsES',
 elasticIndex: 'reservations',
 elasticMapping: reservationMapping,
 elasticType: 'reservations',
 elasticClient: new elasticsearch.Client({
 host: 'http://localhost:9200',
 apiVersion: '7.7',
 log: 'trace',
 }),
 // elastic mapping does not contain information about is fields are arrays or not
 // so provide this information explicitly for obtaining correct types in GraphQL
 pluralFields: ['reviews', 'places', 'cities'],
});

Results in this type of post request:

 POST http://localhost:9200/reservations/_search?type=reservations&q=Boulevard
 {
 "explain": true,
 "version": true,
 "_source": false,
 "track_scores": true
 }

But type=... is no longer supported in ES (7.13)

#! [types removal] Specifying types in search requests is deprecated.

And results in 0 hits, while removeing the type parameter makes it work fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /