Différences entre les versions de « TestSelectingPagesQuery »

De Semantic MediaWiki - Sandbox

Ligne 21 : Ligne 21 :
 
Getting the page with Like, problem n2, searching in the final part of a long Semantic Property
 
Getting the page with Like, problem n2, searching in the final part of a long Semantic Property
 
Query: <nowiki>{{#ask:[[Has text::~*enough*]]}}</nowiki>
 
Query: <nowiki>{{#ask:[[Has text::~*enough*]]}}</nowiki>
Result: {{#ask:[[Has text::~*enough]]|format=debug}}
+
Result: {{#ask:[[Has text::~*enough*]]|format=debug}}
  
 
Getting the page with Like, problem n2, searching in the initial part of a long Semantic Property
 
Getting the page with Like, problem n2, searching in the initial part of a long Semantic Property
 
Query: <nowiki>{{#ask:[[Has text::~*this*]]}}</nowiki>
 
Query: <nowiki>{{#ask:[[Has text::~*this*]]}}</nowiki>
 
Result: {{#ask:[[Has text::~*this*]]}}
 
Result: {{#ask:[[Has text::~*this*]]}}

Version du 27 décembre 2016 à 16:46

Getting the page with the full correct text: Query: {{#ask:[[Has text::L'Aquila]]}} Result: TestSelectingPages

Getting the page with Like, without the part of the text containing the special character: Query: {{#ask:[[Has text::~*Aquila*]]}} Result: TestSelectingPages

Getting the page with Like, with the part of the text including the problem Query: {{#ask:[[Has text::~*'Aquila*]]}} Result: TestSelectingPages





Getting the page with Like, problem n2, searching in the final part of a long Semantic Property Query: {{#ask:[[Has text::~*enough*]]}}

Result:

Debug outputElasticStore
{ "smw": { "query": "[[Has text::~*enough*]]", "sort": { "": "ASC" }, "metrics": { "query size": 2, "query depth": 1 }, "description_log": [ { "SomeProperty": "[[Has text::~*enough*]]" } ] }, "elastic": [ { "index": "smw-data-db9910120150926-02100_", "type": "data", "body": { "_source": false, "from": 0, "size": 251, "query": { "constant_score": { "filter": { "bool": { "must": { "query_string": { "fields": [ "P:32994.txtField", "P:32994.txtField.keyword" ], "query": "*enough*" } } } } } }, "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(+(P:32994.txtField.keyword:*enough* | P:32994.txtField:*enough*)) #*:*" } ] } ] }

Getting the page with Like, problem n2, searching in the initial part of a long Semantic Property Query: {{#ask:[[Has text::~*this*]]}} Result: Issue/1481 (Fulltext)/CJK examples/Zh, Issue/1963, Issue/4095, Issue/4095 (Not able to escape characters inside property value), L'Oréal Men Expert Carbon Protect 4 in 1 Anti-Transpirant Roll-on 50 ml, Lalquier, Links in values, Query a link and some content onto a GeoJSON map, TestSelectingPages2

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.