Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Denis 25 posts 267 karma points
    Oct 04, 2016 @ 14:45
    Denis
    0

    Belle searchResource.searchAll - Need help with Lucene Query

    How can I search documents by document type alias using searchResource.searchAll method?

    Thanks.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Oct 06, 2016 @ 14:02
    Ismail Mayat
    100

    Denis,

    Looking at the docs dont think you can pass in a query? You could try

    searchService.searchContent({term: 'someNodeTypeAliasHere'}).then(function(results){
    angular.forEach(results, function(result){
           }
     })          
     var result = 
    

    })

  • Denis 25 posts 267 karma points
    Oct 06, 2016 @ 16:27
    Denis
    0

    Hi, Ismail! Thanks for you help. I'm sorry, I've made mistake. The method, which I need is entityResource.searchAll. Do searchService.searchContent guarantee that it will return content by document type alias?

Please Sign in or register to post replies

Write your reply to:

Draft