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

Use JSON query DSL #39

Open
luis100 opened this issue May 21, 2021 · 1 comment
Open

Use JSON query DSL #39

luis100 opened this issue May 21, 2021 · 1 comment

Comments

@luis100
Copy link

luis100 commented May 21, 2021

Instead of defining the query or facet parameter in URL query format, use query JSON DSL.

For search:

%solr query techproducts
{
  "query" : "name:iPod"
}

And for facet:

%solr query techproducts
{
  "query": "*:*",
  "facet": {
    "categories" : {
      "type": "terms",
      "field": "cat",
      "limit": 3
    }
  }
}
@luis100
Copy link
Author

luis100 commented May 21, 2021

The JSON query can be interpreted using DirectJsonQueryRequest

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