Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

implement search_raw #143

Open
willkg opened this issue Apr 27, 2013 · 4 comments
Open

implement search_raw #143

willkg opened this issue Apr 27, 2013 · 4 comments
Milestone

Comments

@willkg
Copy link
Member

willkg commented Apr 27, 2013

It'd look like this:

   s = S().search_raw({'query': {'query_string': {'query': 'name:tester'}}})

where search_raw takes a dict and pretty much just passes it through to pyelasticsearch ElasticSearch.search().

Why have this? It allows people to do searches skipping over our API, but still getting back search results in a form that's helpful.

@gvigneron
Copy link
Contributor

On a recent project, my approach was a S().search_raw() that set a variable _raw_search, and a simple if _raw_search at S()._build_query() (and I update S()._clone() to copy the new _raw_search, and create some tests).

I can make a pull request if you think it's the right approach.

@willkg willkg added this to the 0.11 milestone Aug 19, 2014
@patrick91
Copy link
Contributor

@gvigneron can you put the somewhere?

@patrick91
Copy link
Contributor

This is my implementation: patrick91@c8be2ab

@willkg do you want me to submit a PR?

@willkg
Copy link
Member Author

willkg commented Sep 22, 2014

@patrick91 A PR would be super!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants