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