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

Support for Nested Text Fields #35

Open
karansampath opened this issue Jul 16, 2024 · 1 comment
Open

Support for Nested Text Fields #35

karansampath opened this issue Jul 16, 2024 · 1 comment

Comments

@karansampath
Copy link

Currently, the query_field parameter used for the ElasticSearchstore class does not support a nested field since it directly queries the name from the dictionary. This impedes using existing indexes with nested text fields, and would be a simple and useful change.

@miguelgrinberg
Copy link
Collaborator

miguelgrinberg commented Jul 22, 2024

We'll have to think about this one. My assumption was that langchain wants a text field, so I'm not sure if fitting a nested field there is possible. But in any case, you can create a custom strategy class that issues the query that you want. Have you considered doing that?

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

No branches or pull requests

2 participants