Différences entre les versions de « LongText/Query »
De Semantic MediaWiki - Sandbox
< LongText
(Page créée avec « Support phrase matching within a long texts using the<code>~~</code> as expression to indicate an approximate search CiteRef::gh:smw:1481 when the property is unknown.... ») |
|||
Ligne 1 : | Ligne 1 : | ||
− | Support phrase matching within a long texts using the<code>~~</code> as expression to indicate an approximate search [[CiteRef::gh:smw:1481]] when the property is unknown. | + | Support phrase matching within a long texts using the <code>~~</code> as expression to indicate an approximate search [[CiteRef::gh:smw:1481]] when the property is unknown. |
<pre> | <pre> | ||
Ligne 11 : | Ligne 11 : | ||
{{#ask:[[~~parable, which embodies in the]] | {{#ask:[[~~parable, which embodies in the]] | ||
|format=broadtable | |format=broadtable | ||
+ | |link=all | ||
+ | |headers=show | ||
+ | }} | ||
+ | |||
+ | == Debug == | ||
+ | {{#ask:[[~~parable, which embodies in the]] | ||
+ | |format=debug | ||
|link=all | |link=all | ||
|headers=show | |headers=show | ||
}} | }} |
Version du 14 septembre 2016 à 02:55
Support phrase matching within a long texts using the ~~
as expression to indicate an approximate search 1 when the property is unknown.
{{#ask:[[~~parable, which embodies in the]] |format=broadtable |link=all |headers=show }}
LongText |
LongText/Query |
LongText/Query |
LongText/Query |
Debug
Debug outputElasticStore{ "smw": { "query": "[[~~parable, which embodies in the]]", "sort": { "": "ASC" }, "metrics": { "query size": 1, "query depth": 0 }, "description_log": [ { "ValueDescription": "[[~~parable, which embodies in the]]" } ] }, "elastic": [ { "index": "smw-data-db9910120150926-02100_", "type": "data", "body": { "_source": false, "from": 0, "size": 251, "query": { "constant_score": { "filter": { "bool": { "must": [ { "multi_match": { "fields": [ "subject.title^8", "text_copy^5", "text_raw", "attachment.title^3", "attachment.content" ], "query": "parable, which embodies in the", "type": "phrase" } } ] } } } }, "sort": [ { "subject.sortkey.sort": { "order": "asc" }, "subject.title.sort": { "order": "asc" } } ] } }, { "_shards": { "total": 1, "successful": 1, "failed": 0 }, "valid": true, "explanations": [ { "index": "smw-data-db9910120150926-02100_-v2", "valid": true, "explanation": "+ConstantScore(+(text_raw:"parable which embodies in the" | (subject.title:"parable which embodies in the")^8.0 | (text_copy:"parable which embodies in the")^5.0)) #*:*" } ] } ] }