Changes for page Lucene Search Query Help

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

<
From version < 13.2 >
edited by Mircea Staicu
on 2013/02/18 17:30
To version < 16.2 >
edited by Djebloun Sidali
on 2014/02/23 15:36
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -Extension.Search Application
1 +Extension.Lucene Search Application
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.mstaicu
1 +xwiki:XWiki.Sidali
Content
... ... @@ -176,6 +176,26 @@
176 176  name:WebHome
177 177  {{/code}}
178 178  
179 +== space ==
180 +
181 +space : Name of the space the document belongs to
182 +
183 +Look for the word "test" in the space "Blog":
184 +
185 +{{code}}
186 +test AND exactspace:Blog
187 +{{/code}}
188 +
189 +== exactspace ==
190 +
191 +exactspace : is the name of the space the document belongs to, untokenized for exact matches
192 +
193 +Look for the word "test" in the space "Blog":
194 +
195 +{{code}}
196 +test AND exactspace:Blog
197 +{{/code}}
198 +
179 179  == lang ==
180 180  
181 181  Look for "Voila" in french documents :
... ... @@ -282,3 +282,11 @@
282 282  {{code}}
283 283  +Space.Class.databaseTreeProperty:(searchedValue)
284 284  {{/code}}
305 +
306 +If you would like to add a logical disjunction to the above use case, you can do it like this:
307 +
308 +{{code}}
309 ++Space.Class.databaseTreeProperty:(searchedValue OR anotherSearchedValue)
310 +{{/code}}
311 +
312 +This will return all documents which contain in the object's property value either searchedValue or anotherSearchedValue

Get Connected