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

Allow better query handling of nested fields #99

Open
mdavis95 opened this issue Apr 13, 2023 · 0 comments
Open

Allow better query handling of nested fields #99

mdavis95 opened this issue Apr 13, 2023 · 0 comments

Comments

@mdavis95
Copy link
Contributor

mdavis95 commented Apr 13, 2023

Consider the sample document:

{  
   "id": "123",
   "title": "The best title",
   authors: [
      {
          firstName: "Tom",
          lastName: "Jones"
      },
      {
          firstName: "Jennifer",
          lastName: "Smith"
      }
   ]
}

Currently it is possible to search authors.firstName:"Tom" AND authors.lastName:"Smith" but that would erroneous match the above document because the matching it is at the root document level.

Using Lucene's blockjoin, it is possible to index child document alongside the parent document and allow separate queries against the child documents.

Zulia should support defining authors as a nested type and then allow searching on firstName and lastName correctly within that nested type.

@mdavis95 mdavis95 changed the title Add nested field type Allow better query handling of nested fields Apr 13, 2023
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