core icon indicating copy to clipboard operation
core copied to clipboard

Elastic Search Quests should support +contentType:

Open DeanGonzalez opened this issue 11 years ago • 7 comments

When we changed the name of Structure to Content Type we left the elastic search queries with +structureName. Since this language is now inconsistent, we should support the use of +contentType as a way to query Content Types.

+structureName should continue to be supported if this is possible, but we should not have two names for the same dotCMS object.

This will avoid confusion for the clients in our code and documentation such as this:

http://dotcms.com/docs/latest/ContentSearchSyntax

structurenameinelasticsearch

DeanGonzalez avatar Feb 17 '15 15:02 DeanGonzalez

yup. We should support both but note that the structureName is deprecated.

wezell avatar Feb 17 '15 15:02 wezell

fixed here. https://github.com/dotCMS/core/pull/7370

dsilvam avatar Feb 26 '15 18:02 dsilvam

new commit, PR udpated

dsilvam avatar Feb 26 '15 22:02 dsilvam

@dsilvam need a bit more work. As seen in the screenshot above lets update the messaging to the user

jtesser avatar Feb 27 '15 13:02 jtesser

Fixed, Tested on nightly build 2015-03-24 // Postgres // FF

bryanboza avatar Mar 26 '15 15:03 bryanboza

Doc was prepared, waiting to publish: http://dotcms.com/docs/latest/content-search-syntax I also searched for +structureType and +structureName in all docs and replaced

DeanGonzalez avatar Apr 17 '15 14:04 DeanGonzalez

Added TC http://qa.dotcms.com/index.php?/cases/view/59166

shaydotcms avatar Jun 16 '15 15:06 shaydotcms