This repository has been archived by the owner on Jan 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Elasticsearch model
Steven Myers edited this page Nov 19, 2017
·
3 revisions
- this is the serialized form that is given to the user. Collects data that will be used to with a percolator query.
- it is made in the "FormBuilder" at the
admin/screener/edit
client route. - it is served in the
/api/screener
route in theapi-server
. - it cached in memory in the
screenerCache
-
GET http://localhost:9200/questions/screener/_search?pretty=true
will return you the last25
screeeners -
GET http://localhost:9200/questions/screener/_mapping?pretty=true
will return the mapping for the screener
- these contain a bool query in the
query
property. They also have ameta
object property that holdsprogram_guid
andid
this is thequery id
and theprogram id
the query is associated with. - is is used in the NotificationEngine.
- the
NotificationEngine
is accessed in theapi/notification/
takes form data. - the form data is sent from the
/master-screener/questions
client route. Found in themaster-screener
module on the client side. - the conditions making up the bool query are input in the
admin/programs/application-edit/:guid
section of the client app. There is an application data model generated client side this is translated to theelasticsearch
data model in the query-converter.ts. -
GET
http://localhost:9200/master_screener/queries/_search?pretty=true
will return you25
queries. -
GET
http://localhost:9200/master_screener/queries/_mapping?pretty=true
will return the query mappings.
- these are the programs that the user is searching for.
- this is the
user_facing
information. Theapplication_facing
information is the collection of queries. - the program_cache holds these in an
in-memory cache
in the server. - they are constructed in the program edit section in the admin client
-
GET
http://localhost:9200/programs/user_facing/_search?pretty=true
will return you25
user_facing. -
GET
http://localhost:9200/programs/user_facing/_mapping?pretty=true
will return the user_facing mappings.