131
edits
DEinspanjer (talk | contribs) (First draft) |
DEinspanjer (talk | contribs) (→Notes) |
||
| Line 6: | Line 6: | ||
==Notes== | ==Notes== | ||
* The [http://www.elasticsearch.com/docs/elasticsearch/rest_api/search/facets/histogram_facet/ histogram facets] don't look very pretty. The natural syntax returns an epoch instead of readable dates, and both the natural and the script version return nonsensical values for "total" and "mean". | * The [http://www.elasticsearch.com/docs/elasticsearch/rest_api/search/facets/histogram_facet/ histogram facets] don't look very pretty. The natural syntax returns an epoch instead of readable dates, and both the natural and the script version return nonsensical values for "total" and "mean". | ||
* Mix of [http://lucene.apache.org/java/ | * Mix of [http://lucene.apache.org/java/3_0_2/queryparsersyntax.html Lucene format] query_string and [http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/ ElasticSearch Query DSL] syntax just for example purposes. | ||
* The non-filter part of the query could be used to provide boost scores (The ^2 ^0.5 syntax) when looking for relevant tweets. Even then, care must be taken because parsing/searching text is hard. In this sample, there are tweets that use the term "hang" in the context "get the hang of". Very different from what we'd first assume when searching for the term hang. | * The non-filter part of the query could be used to provide boost scores (The ^2 ^0.5 syntax) when looking for relevant tweets. Even then, care must be taken because parsing/searching text is hard. In this sample, there are tweets that use the term "hang" in the context "get the hang of". Very different from what we'd first assume when searching for the term hang. | ||
* For the contributor/reply facets, we use the "global" attribute to specify that these facets shouldn't be restricted by the main query. They provide their own filter queries for #fxhelp. | * For the contributor/reply facets, we use the "global" attribute to specify that these facets shouldn't be restricted by the main query. They provide their own filter queries for #fxhelp. | ||
==Query== | ==Query== | ||
http://<server>.mozilla.org:9200/twitter_river/status/_search | http://<server>.mozilla.org:9200/twitter_river/status/_search | ||
edits