Changes for page Lucene Search Query Help

Last modified by Djebloun Sidali on 2014/02/23 15:55

<
From version < 7.1 >
edited by Eduard Moraru
on 2011/04/20 16:44
To version < 10.2 >
edited by Vincent Massol
on 2011/12/03 13:58
>
Change comment: fix title

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 - Lucene Search Query Help
1 +Lucene Search Query Help
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.enygma
1 +xwiki:XWiki.VincentMassol
Content
... ... @@ -107,7 +107,7 @@
107 107  To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query:
108 108  
109 109  {{code}}
110 -"jakarta apache" &#45;"Apache Lucene"
110 +"jakarta apache" -"Apache Lucene"
111 111  {{/code}}
112 112  
113 113  == Grouping ==
... ... @@ -148,7 +148,7 @@
148 148  
149 149  = Searchable fields =
150 150  
151 -XWiki documents contain wiki content and meta-information, lucene indexes such information in fields.
151 +XWiki documents contain wiki content and meta-information. Lucene indexes such information in fields.
152 152  
153 153  == wiki ==
154 154  
... ... @@ -196,7 +196,7 @@
196 196  
197 197  == filename ==
198 198  
199 -Look for attachments with a filename starting by "test":
199 +Look for attachments with a filename starting with "test":
200 200  
201 201  {{code}}
202 202  filename:test*
... ... @@ -247,3 +247,19 @@
247 247  {{code}}
248 248  creationdate:20090708*
249 249  {{/code}}
250 +
251 +== Searching for fields in XWiki objects ==
252 +
253 +Beside Lucene's XWiki specific index fields, querying for documents based on the property values of contained XWiki objects is also possible.
254 +
255 +Look for the profile page of a user who's first name is 'Administrator'.
256 +
257 +{{code}}
258 +XWiki.XWikiUsers.first_name:'Administrator'
259 +{{/code}}
260 +
261 +Look for all users or groups, except the group template:
262 +
263 +{{code}}
264 ++(object:XWiki.XWikiUsers object:XWiki.XWikiGroups) -name:XWikiGroupTemplate
265 +{{/code}}

Get Connected