Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard field should return value as Strings not ByteRefs for scripts #58044

Closed
markharwood opened this issue Jun 12, 2020 · 2 comments · Fixed by #58060
Closed

Wildcard field should return value as Strings not ByteRefs for scripts #58044

markharwood opened this issue Jun 12, 2020 · 2 comments · Fixed by #58060
Assignees
Labels
>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@markharwood
Copy link
Contributor

To support compatibility with keyword fields the wildcard field should return Strings for values to scripts, not a BytesRef object (currently a ScriptDocValues to be more precise)

@markharwood markharwood added >bug :Search/Search Search-related issues that do not fall into other categories labels Jun 12, 2020
@markharwood markharwood self-assigned this Jun 12, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jun 12, 2020
markharwood added a commit to markharwood/elasticsearch that referenced this issue Jun 15, 2020
This need some reorg of BinaryDV field data classes to allow specialisation of scripted doc values.
Moved common logic to a new abstract base class and added a new subclass to return string-based representations to scripts.

Closes elastic#58044
markharwood added a commit that referenced this issue Jun 15, 2020
#58060)

This need some reorg of BinaryDV field data classes to allow specialisation of scripted doc values.
Moved common logic to a new abstract base class and added a new subclass to return string-based representations to scripts.

Closes #58044
markharwood added a commit to markharwood/elasticsearch that referenced this issue Jun 15, 2020
elastic#58060)

This need some reorg of BinaryDV field data classes to allow specialisation of scripted doc values.
Moved common logic to a new abstract base class and added a new subclass to return string-based representations to scripts.

Closes elastic#58044
markharwood added a commit that referenced this issue Jun 15, 2020
#58060) (#58109)

This need some reorg of BinaryDV field data classes to allow specialisation of scripted doc values.
Moved common logic to a new abstract base class and added a new subclass to return string-based representations to scripts.

Closes #58044
@markharwood
Copy link
Contributor Author

Thanks for reporting this, @astefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
2 participants