R
R
Roman Andreevich2020-03-18 13:08:38
Node.js
Roman Andreevich, 2020-03-18 13:08:38

How to do a search with elasticsearch?

Colleagues, I ask for help because I encountered elastcsearch for the first time, in fact, I just can’t do a keyword search, if anyone came across, tell me, pliz.

In fact, everything should be simple, but for some reason I can’t enter:

index: 'some index',
      body: {
        aggs: {
          'keys' : {
            terms: {
              field: 'keyword',
              size: 10,
              order: {
                _term: 'asc'
              },
              filters: {
                field: 'keyword',
                match: text
              }
            }
          },
        }
      },


thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iva3682, 2020-05-02
@iva3682

index mapping is not visible to suggest how to search

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question