-
Bug
-
Resolution: Fixed
-
Major
-
4.0.0
-
None
-
4.1 RC1
...can sometimes not work.
allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable))
does not return any result.
allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable))
does.
I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -"
See also CMS-7940
See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed
[CMS-8502] Negative queries at a non top-level clause
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Patch available [ 10005 ] | New: Resolved [ 5 ] |
Sprint | New: 4.1 M7 [ 14 ] |
Status | Original: Open [ 1 ] | New: Patch available [ 10005 ] |
Description |
Original:
...can not work.
{code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code} does not return any result. {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code} does. I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -" See also See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed |
New:
...can sometimes not work.
---- {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code} does not return any result. ---- {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code} does. ---- I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "\*:\* -" See also See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed |
Description |
Original:
can not work
{code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code} does not return any result {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code} does I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -" See also See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed |
New:
...can not work.
{code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code} does not return any result. {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code} does. I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -" See also See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed |
Attachment | New: org.ametys.cms.search.query.Query.PNG [ 19714 ] |
Description |
Original:
can not work
{code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable OR allContentTypes:org.ametys.plugins.thesaurus.Content.item)){code} does not return any result {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable OR allContentTypes:org.ametys.plugins.thesaurus.Content.item)){code} does I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -" See also See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed |
New:
can not work
{code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code} does not return any result {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code} does I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -" See also See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed |
Assignee | New: Simon Prieul [ sprieul ] |