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

[suggestion] better usability of JSON index #20

Open
bnayae opened this issue Jan 1, 2022 · 0 comments
Open

[suggestion] better usability of JSON index #20

bnayae opened this issue Jan 1, 2022 · 0 comments

Comments

@bnayae
Copy link

bnayae commented Jan 1, 2022

I was struggling with search query over JSON module while I wanted to have a filter over specific property.
After long time of straggling I figure out that the problem was that the $.myFiledName in the schema need AS myFieldName alias in order to operate well.

I also figure out that it is possible to set it right .AddTextField(FieldName.Of("$.desc").As("description")) but it might not what people expect.
Most people might expect .AddTextField("$.desc").

Therefore I decided to offer contribution of addressing this issue, in order to save this straggling from other.

The PR is having Unit Test.

I hope you'll find it right for this repo.

See #19 PR

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

1 participant