-
What is the best way to debug them?
-
It depends on the issue, but there are two things you can do. Note that FusionAuth typically sends the query you post to the
/api/user/searchendpoint with thequeryparameter straight through to ElasticsearchFirst, ensure you are running elasticsearch and not the database search engine.
Then, for some queries you can see the generate ElasticSearch query strings by clicking on the 'advanced' option in the user search area of the admin UI. This can be helpful.
Finally, try running the query directly against elasticsearch and seeing if it works. Here are examples which will pull back all the data in your elasticsearch cluster (beware!).
curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d' { "query": { "match_all": {} } }'or, if you have the query stored in
query.jsoncurl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d@query.json -
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login