NRediSearch icon indicating copy to clipboard operation
NRediSearch copied to clipboard

[suggestion] better usability of JSON index

Open bnayae opened this issue 4 years ago • 0 comments

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

bnayae avatar Jan 01 '22 17:01 bnayae