]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FSemanticSearchPlugin
function _PageList_Column* are not private
[SourceForge/phpwiki.git] / pgsrc / Help%2FSemanticSearchPlugin
1 Date: Fri,  7 Dec 2012 14:58:45 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FSemanticSearchPlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 Search for relations/attributes and its values.
11
12 page - relation::object. e.g list all cities: is_a::city => relation=is_a&s=city
13
14 We search for both a relation and if the search is valid for attributes also, and OR combine the result.
15
16 An attribute has just a value, which is a number, and which is for sure no pagename, and its value goes through some units unification. (not yet)
17
18 We can also do numerical comparison and unit lifting with attributes:
19 *  population > 1000000
20 *  population > 1 million
21
22 Limitation:
23 * The backends can already do simple AND/OR combination of multiple relations and attributes to search for. Just the UI not. TODO: implement the AND/OR buttons.  population < 1 million AND area > 50 km2
24 * Due to attribute internals a relation search with matching attribute names will also find those attribute names, but not the values. You must explicitly search for attributes then.
25
26 The Advanced query can do a freeform query expression with multiple comparison and nesting.
27 * "is_a::city and population > 1.000.000 and population < 10.000.000"
28 * "(is_a::city or is_a::country) and population < 10.000.000"
29
30 == Usage ==
31
32 {{{
33 <<SemanticSearch arguments>>
34 }}}
35
36 == Arguments ==
37
38 All [[Help:PageList|PageList]] arguments, plus the following ones:
39
40 {| class="bordered"
41 |-
42 ! Argument
43 ! Description
44 ! Default value
45 |-
46 | **s**
47 | linkvalue query string
48 | *
49 |-
50 | **page**
51 | which pages (glob allowed)
52 | ~* (all)
53 |-
54 | **relation**
55 | linkname. which relations.
56 | all
57 |-
58 | **attribute**
59 | linkname. which attributes.
60 | all
61 |-
62 | **attr_op**
63 | a funny written way for equality for pure aesthetic pleasure "All attributes which have this value set"
64 | ~:=
65 |-
66 | **units**
67 |
68 |
69 |-
70 | **case_exact**
71 |
72 | true
73 |-
74 | **regex**
75 | no word splitting, if no regex op is present, defaults to exact match
76 | auto
77 |-
78 | **noform**
79 | don't show form with results.
80 | false
81 |-
82 | **noheader**
83 | no caption
84 | false
85 |-
86 | **info**
87 | valid: pagename, relation, linkto, attribute, value and all other pagelist columns
88 | false
89 |}
90
91 == Example ==
92
93 {{{
94 <<SemanticSearch>>
95 }}}
96
97 <<SemanticSearch>>
98
99 == Author ==
100 * [[Help:Reini Urban|Reini Urban]]
101
102 == See Also ==
103 * [[Help:TitleSearchPlugin]]
104 * [[Help:FullTextSearchPlugin]]
105 * [[Help:ExternalSearchPlugin]]
106 * [[Help:InterWikiSearchPlugin]]
107
108 <noinclude>
109 ----
110 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
111 </noinclude>