This directory contains all the scripts necessary to login and conduct a search.
- Create a credentials.py
- Populate it with your cogstack instance and login details An example template can be seen below:
hosts = [] # This is a list of your cogstack elasticsearch instances.
# These are your login details (either via http_auth or API)
username = None
password = None
Note: If these fields are left blank then the user will be prompted to enter the details themselves.
If you are unsure about the above information please contact your CogStack system administrator.
A core component of cogstack is Elasticsearch which is a search engine built on top of Apache Lucene.
Lucene has a custom query syntax for querying its indexes (Lucene Query Syntax). This query syntax allows for features such as Keyword matching, Wildcard matching, Regular expression, Proximity matching, Range searches.
Full documentation for this syntax is available as part of Elasticsearch query string syntax.