Sergiu Dumitriu-2 wrote
Well, there are two "bugs" involved here.
One is that when there are spaces (as in white space) in the space name,
the part of the query that is supposed to filter only results from that
space is broken: instead of searching for documents in the space "a
space with whitespace", it searches for documents in the space "a" and
also containing "space with whitespace" as words in the text. I just
fixed this issue for the upcoming 4.3 release:
http://jira.xwiki.org/browse/XWIKI-8191
The second one is that the space name is not stored as it is, but it's
tokenized and analyzed so that it supports non-exact matches. But this
means that 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. Fixing this would be a bit harder, since it
means indexing not just the "space" field, but also an "exactspace"
field that would allow exact matches on the space name. I've created
https://jira.xwiki.org/browse/XWIKI-8192 to track this issue.
Thank you very much for your response, Sergiu. That really helps to explain
things. Our two main spaces have "white spaces" in their names AND have
some similar letters in their names.
Less than a month ago, wupgraded from XWIKI 2.4 to 4.2 milestone 1. I read
the JIRAs you mentioned, and it's good to know that if we upgrade to 4.3 (or
higher) sometime in the future, those issues have been captured and are
being worked.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Lucene-Search-does-not-correctly-filter-b…
Sent from the XWiki- Users mailing list archive at
Nabble.com.