Elasticsearch curl matches userid = 6 and ismargin_mode = 1
- User
Elasticsearch curl matches user_id = 6 and is_margin_mode = 1
Assistant
Here's the Elasticsearch curl command to match documents where
user_idis 6 andis_margin_modeis 1:curl -X GET "localhost:9200/<index_name>/_search" -H 'Content-Type: application/json' -d' { "query": { "bool": { "must": [ { "term": { "user_id": 6 } }, { "term": { "is_margin_mode": 1 } } ] } } }'In this command:
- Replace
<index_name>with the actual name of your index. - The
boolquery withmustclauses ensures that both conditions (user_id = 6andis_margin_mode = 1) are met. - The
termquery is used for exact matches on the specified fields.
This command will return documents that match both conditions.
- Replace
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.