Changes for page Lucene Search Query Help
Last modified by Djebloun Sidali on 2014/02/23 15:55
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
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. mstaicu1 +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