_searchall

  • -

_searchall

Category : latest version

Full text search is the one of the biggest ElasticWarehouse features. SearchAll restpoint allows you to search for files by its contents and do the most generic search, like search everywhere where possible.

Parameter From version Requirement Type Description
q all mandatory string Search query phase. Query phase is being used to build multi match query. For more complex search please refer to _ewsearch restpoint described in the next point.
from all optional int As default, search request returns 10 results. Parameter defines the offset from the first result you want to fetch. Increase “from” value to iterate through all results.
size all optional int As default, search request returns 10 results. The size parameter allows you to configure the maximum amount of documents to be returned.
highlight all optional boolean Default value is false. When set to “true” ElasticWarehouse returns context with highlighted query phase.
fragmentSize all optional int Default value is 300. Attribute to define context size for highlighting. Used only when highlight="true".
pretag all optional string Tag to mark begin of highlighted context. Used only when highlight="true".
posttag all optional string Tag to mark end of highlighted context. Used only when highlight="true".
showrequest all optional boolean When set to “true” ElasticWarehouse node prints converted JSON request on standard output. Converted JSON request can be executed directly on ElasticSearch cluster. It’s useful when you plan to build your own ElasticWarehouse client connected directly to the ElasticSearch cluster.
folder >=1.2.1 optional string Use to search in particular folder only.
curl "http://localhost:10200/_ewsearchall?q=Market"

curl "http://localhost:10200/_ewsearchall?q=Market&highlight=true"

You can also use ewshell to preform search and get response nicely wrapped in console, see sample usage:

ewshell.sh -c searchall Market

ewshell.sh -c searchall Market --highlight 1

_ewtask
_search