@@ -140,6 +140,7 @@ class ElasticSearchQueryBuilder implements QueryBuilderInterface, ProtectedConte
140140 *
141141 * @param string $nodeType the node type to filter for
142142 * @return ElasticSearchQueryBuilder
143+ * @api
143144 */
144145 public function nodeType ($ nodeType ) {
145146 // on indexing, __typeAndSupertypes contains the typename itself and all supertypes, so that's why we can
@@ -154,6 +155,7 @@ public function nodeType($nodeType) {
154155 *
155156 * @param string $propertyName the property name to sort by
156157 * @return ElasticSearchQueryBuilder
158+ * @api
157159 */
158160 public function sortDesc ($ propertyName ) {
159161 if (!isset ($ this ->request ['sort ' ])) {
@@ -174,6 +176,7 @@ public function sortDesc($propertyName) {
174176 *
175177 * @param string $propertyName the property name to sort by
176178 * @return ElasticSearchQueryBuilder
179+ * @api
177180 */
178181 public function sortAsc ($ propertyName ) {
179182 if (!isset ($ this ->request ['sort ' ])) {
@@ -200,6 +203,7 @@ public function sortAsc($propertyName) {
200203 *
201204 * @param integer $limit
202205 * @return ElasticSearchQueryBuilder
206+ * @api
203207 */
204208 public function limit ($ limit ) {
205209 if (!$ limit ) {
@@ -227,6 +231,7 @@ public function limit($limit) {
227231 *
228232 * @param integer $from
229233 * @return ElasticSearchQueryBuilder
234+ * @api
230235 */
231236 public function from ($ from ) {
232237 if (!$ from ) {
@@ -245,6 +250,7 @@ public function from($from) {
245250 * @param string $propertyName Name of the property
246251 * @param mixed $value Value for comparison
247252 * @return ElasticSearchQueryBuilder
253+ * @api
248254 */
249255 public function exactMatch ($ propertyName , $ value ) {
250256 if ($ value instanceof NodeInterface) {
@@ -260,6 +266,7 @@ public function exactMatch($propertyName, $value) {
260266 * @param string $propertyName Name of the property
261267 * @param mixed $value Value for comparison
262268 * @return ElasticSearchQueryBuilder
269+ * @api
263270 */
264271 public function greaterThan ($ propertyName , $ value ) {
265272 return $ this ->queryFilter ('range ' , array ($ propertyName => array ('gt ' => $ value )));
@@ -271,6 +278,7 @@ public function greaterThan($propertyName, $value) {
271278 * @param string $propertyName Name of the property
272279 * @param mixed $value Value for comparison
273280 * @return ElasticSearchQueryBuilder
281+ * @api
274282 */
275283 public function greaterThanOrEqual ($ propertyName , $ value ) {
276284 return $ this ->queryFilter ('range ' , array ($ propertyName => array ('gte ' => $ value )));
@@ -282,6 +290,7 @@ public function greaterThanOrEqual($propertyName, $value) {
282290 * @param string $propertyName Name of the property
283291 * @param mixed $value Value for comparison
284292 * @return ElasticSearchQueryBuilder
293+ * @api
285294 */
286295 public function lessThan ($ propertyName , $ value ) {
287296 return $ this ->queryFilter ('range ' , array ($ propertyName => array ('lt ' => $ value )));
@@ -294,6 +303,7 @@ public function lessThan($propertyName, $value) {
294303 * @param string $propertyName Name of the property
295304 * @param mixed $value Value for comparison
296305 * @return ElasticSearchQueryBuilder
306+ * @api
297307 */
298308 public function lessThanOrEqual ($ propertyName , $ value ) {
299309 return $ this ->queryFilter ('range ' , array ($ propertyName => array ('lte ' => $ value )));
@@ -311,6 +321,7 @@ public function lessThanOrEqual($propertyName, $value) {
311321 * @param string $clauseType one of must, should, must_not
312322 * @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception\QueryBuildingException
313323 * @return ElasticSearchQueryBuilder
324+ * @api
314325 */
315326 public function queryFilter ($ filterType , $ filterOptions , $ clauseType = 'must ' ) {
316327 if (!in_array ($ clauseType , array ('must ' , 'should ' , 'must_not ' ))) {
@@ -360,6 +371,7 @@ public function appendAtPath($path, array $data) {
360371 * @param array $data An associative array of keys as variable names and values as variable values
361372 * @param string $clauseType one of must, should, must_not
362373 * @return ElasticSearchQueryBuilder
374+ * @api
363375 */
364376 public function queryFilterMultiple ($ data , $ clauseType = 'must ' ) {
365377 foreach ($ data as $ key => $ value ) {
@@ -388,6 +400,7 @@ public function getRequest() {
388400 *
389401 * @param string $message an optional message to identify the log entry
390402 * @return $this
403+ * @api
391404 */
392405 public function log ($ message = NULL ) {
393406 $ this ->logThisQuery = TRUE ;
@@ -486,6 +499,7 @@ public function fetch() {
486499 * Get a query result object for lazy execution of the query
487500 *
488501 * @return \Traversable<\TYPO3\Flow\Persistence\QueryResultInterface>
502+ * @api
489503 */
490504 public function execute () {
491505 $ elasticSearchQuery = new ElasticSearchQuery ($ this );
@@ -497,6 +511,7 @@ public function execute() {
497511 * Return the total number of hits for the query.
498512 *
499513 * @return integer
514+ * @api
500515 */
501516 public function count () {
502517 $ timeBefore = microtime (TRUE );
@@ -525,6 +540,7 @@ public function count() {
525540 *
526541 * @param string $searchWord
527542 * @return QueryBuilderInterface
543+ * @api
528544 */
529545 public function fulltext ($ searchWord ) {
530546
@@ -542,6 +558,7 @@ public function fulltext($searchWord) {
542558 *
543559 * @param NodeInterface $contextNode
544560 * @return QueryBuilderInterface
561+ * @api
545562 */
546563 public function query (NodeInterface $ contextNode ) {
547564 // on indexing, the __parentPath is tokenized to contain ALL parent path parts,
@@ -558,7 +575,6 @@ public function query(NodeInterface $contextNode) {
558575 return $ this ;
559576 }
560577
561-
562578 /**
563579 * All methods are considered safe
564580 *
0 commit comments