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.5 >
edited by Djebloun Sidali
on 2014/02/23 15:45
>
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,28 @@
176 176  name:WebHome
177 177  {{/code}}
178 178  
179 +== space ==
180 +
181 +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 space:Blog
187 +{{/code}}
188 +
189 +== exactspace ==
190 +
191 +Name of the space the document belongs to, untokenized for exact matches.
192 +
193 +if we have two spaces, "Main" and "The Main Space", trying to get results from the "Main" space will also include results from the "The Main Space" space. The "exactspace" field will allow to have exact matches on the space name.
194 +
195 +Look for the word "test" in the space "Blog":
196 +
197 +{{code}}
198 +test AND exactspace:Blog
199 +{{/code}}
200 +
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}}
307 +
308 +If you would like to add a logical disjunction to the above use case, you can do it like this:
309 +
310 +{{code}}
311 ++Space.Class.databaseTreeProperty:(searchedValue OR anotherSearchedValue)
312 +{{/code}}
313 +
314 +This will return all documents which contain in the object's property value either searchedValue or anotherSearchedValue

Get Connected