« Issue/2499 » : différence entre les versions
De Semantic MediaWiki - Sandbox
m (red link > external link) |
(tweak) Balise : Éditeur de wikicode 2017 |
||
(5 versions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
Notes on this page are made in regards to <code>$GLOBALS['smwgFieldTypeFeatures'] = SMW_FIELDT_CHAR_NOCASE | SMW_FIELDT_CHAR_LONG;</code>[[CiteRef::gh:smw:2499]] | Notes on this page are made in regards to configuration setting <code>$GLOBALS['smwgFieldTypeFeatures'] = SMW_FIELDT_CHAR_NOCASE | SMW_FIELDT_CHAR_LONG;</code>[[CiteRef::gh:smw:2499]] | ||
== Page == | == Page == | ||
Ligne 5 : | Ligne 5 : | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="width: 33%;" | Query | ! style="width: 33%;" | Query | ||
! style="width: 33%;" |Result | ! style="width: 33%;" | Result | ||
! Comments | ! Comments | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[Page::some title with a value]] | |||
|?Page | |?Page | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[Page::some title with a value]] |?Page |format=ul }} | {{#ask: [[Category:2499]] [[Page::some title with a value]] |?Page |format=ul }} | ||
Ligne 20 : | Ligne 24 : | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[Page::~some title with a value]] | |||
|?Page | |?Page | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[Page::~some title with a value]] |?Page |format=ul }} | {{#ask: [[Category:2499]] [[Page::~some title with a value]] |?Page |format=ul }} | ||
| | | | ||
* <code>~</code> as match operator is to direct the search towards the <code>smw_sortkey</code> field (a field that is made NOCASE) | * <code>~</code> as match operator is to direct the search towards the <code>smw_sortkey</code> field (a field that is made NOCASE) | ||
* In case the [ | * In case the [[semantic-mw:Help:Full-text search|full-text]] index is enabled then the search is redirected to the full-text index given that the <code>SMW_FT_WIKIPAGE</code> option is enabled as well | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[Page::like:some title with a value]] | |||
|?Page | |?Page | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[Page::like:some title with a value]] |?Page |format=ul }} | {{#ask: [[Category:2499]] [[Page::like:some title with a value]] |?Page |format=ul }} | ||
Ligne 45 : | Ligne 57 : | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="width: 33%;" | Query | ! style="width: 33%;" | Query | ||
! style="width: 33%;" |Result | ! style="width: 33%;" | Result | ||
! Comments | ! Comments | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[Text::some title with a value]] | |||
|?Text | |?Text | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[Text::some title with a value]] |?Text |format=ul }} | {{#ask: [[Category:2499]] [[Text::some title with a value]] |?Text |format=ul }} | ||
Ligne 60 : | Ligne 76 : | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[Text::~some title with a value]] | |||
|?Text | |?Text | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[Text::~some title with a value]] |?Text |format=ul }} | {{#ask: [[Category:2499]] [[Text::~some title with a value]] |?Text |format=ul }} | ||
Ligne 70 : | Ligne 90 : | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[Text::like:some title with a value]] | |||
|?Text | |?Text | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[Text::like:some title with a value]] |?Text |format=ul }} | {{#ask: [[Category:2499]] [[Text::like:some title with a value]] |?Text |format=ul }} | ||
Ligne 81 : | Ligne 105 : | ||
== URL == | == URL == | ||
In case of the <code>SMWElasticStore</code>, the <code>$smwgElasticsearchConfig['query']['uri.field.case.insensitive'] = true;</code> configuration setting is required to make the listed function to use a case insensitive context. | |||
{| class="wikitable" | {| class="wikitable" | ||
! style="width: 33%;" | Query | ! style="width: 33%;" | Query | ||
! style="width: 33%;" |Result | ! style="width: 33%;" | Result | ||
! Comments | ! Comments | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[URL::http://example.org/some title with a value]] | |||
|?URL | |?URL | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[URL::http://example.org/some title with a value]] |?URL |format=ul }} | {{#ask: [[Category:2499]] [[URL::http://example.org/some title with a value]] |?URL |format=ul }} | ||
Ligne 97 : | Ligne 127 : | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[URL::~http://example.org/some title with a value]] | |||
|?URL | |?URL | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[URL::~http://example.org/some title with a value]] |?URL |format=ul }} | {{#ask: [[Category:2499]] [[URL::~http://example.org/some title with a value]] |?URL |format=ul }} | ||
Ligne 106 : | Ligne 140 : | ||
|- | |- | ||
| | | | ||
<pre> | <pre> | ||
{{#ask: | |||
[[Category:2499]] | |||
[[URL::like:http://example.org/some title with a value]] | |||
|?URL | |?URL | ||
|format=ul | |format=ul | ||
}} | }} | ||
</pre> | |||
| | | | ||
{{#ask: [[Category:2499]] [[URL::like:http://example.org/some title with a value]] |?URL |format=ul }} | {{#ask: [[Category:2499]] [[URL::like:http://example.org/some title with a value]] |?URL |format=ul }} | ||
Ligne 117 : | Ligne 155 : | ||
== See also == | == See also == | ||
* [[Issue/1912]] | * [[Issue/1912]] | ||
* [[Issue/2499/Keyword]] | * [[Issue/2499/Keyword]] | ||
Ligne 126 : | Ligne 163 : | ||
}} | }} | ||
[[Category:Issue]] __NOTOC__ | [[Category:Issue]] | ||
__NOTOC__ |
Dernière version du 24 mars 2018 à 17:57
Notes on this page are made in regards to configuration setting $GLOBALS['smwgFieldTypeFeatures'] = SMW_FIELDT_CHAR_NOCASE | SMW_FIELDT_CHAR_LONG;
1
Page
Query | Result | Comments |
---|---|---|
{{#ask: [[Category:2499]] [[Page::some title with a value]] |?Page |format=ul }} |
| |
{{#ask: [[Category:2499]] [[Page::~some title with a value]] |?Page |format=ul }} |
|
|
{{#ask: [[Category:2499]] [[Page::like:some title with a value]] |?Page |format=ul }} |
|
|
Text
Query | Result | Comments |
---|---|---|
{{#ask: [[Category:2499]] [[Text::some title with a value]] |?Text |format=ul }} |
| |
{{#ask: [[Category:2499]] [[Text::~some title with a value]] |?Text |format=ul }} |
|
|
{{#ask: [[Category:2499]] [[Text::like:some title with a value]] |?Text |format=ul }} |
|
|
URL
In case of the SMWElasticStore
, the $smwgElasticsearchConfig['query']['uri.field.case.insensitive'] = true;
configuration setting is required to make the listed function to use a case insensitive context.
Query | Result | Comments |
---|---|---|
{{#ask: [[Category:2499]] [[URL::http://example.org/some title with a value]] |?URL |format=ul }} |
|
|
{{#ask: [[Category:2499]] [[URL::~http://example.org/some title with a value]] |?URL |format=ul }} |
|
|
{{#ask: [[Category:2499]] [[URL::like:http://example.org/some title with a value]] |?URL |format=ul }} |
|
|