Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Elasticsearch errors in querying #461

Open
peterbe opened this issue May 11, 2018 · 3 comments
Open

Elasticsearch errors in querying #461

peterbe opened this issue May 11, 2018 · 3 comments
Labels

Comments

@peterbe
Copy link
Contributor

peterbe commented May 11, 2018

See https://gist.github.com/peterbe/9ee7f6faf5bb8a96fab09fc921e3818b

In particular:

java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=true on [source.product] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.

This happens when I use POST http://localhost:8888/v1/buckets/build-hub/collections/releases/search from the Buildhub web UI locally.
My ES schema looks as follows: https://gist.github.com/peterbe/32378af65a99d1085a3501a76c3bc575

So, with ES 5.4.0 can you not cardinality query on a Text field?

@peterbe
Copy link
Contributor Author

peterbe commented May 11, 2018

Uh. The big question is, why is the "type" of that source.product field text??
According to

it should have been created as keyword, right?

@peterbe
Copy link
Contributor Author

peterbe commented May 11, 2018

The question is; why does the mapping becomes "text" when the initialization.yml file says "keyword".

@peterbe
Copy link
Contributor Author

peterbe commented May 11, 2018

Making this a P1 bug because both my virtualenv and my docker-compose environments are busted. Meaning I can't use SearchKit (aka. the buildhub UI) to query what I have.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant