AnsweredAssumed Answered

Different search results

Question asked by qsdmv on Oct 29, 2014
Latest reply on Oct 30, 2014 by qsdmv
I have used alfresco search service API and node browser but got different results. Both uses Lucene and exactly same query. I have used this for a while until someone mentioned this. What could cause this?

API:


String query = "+TYPE:\"" + MyContentModel.ARTICLE + "\" +@web\\:parent:\"" + nodeId + "\"";
        SearchParameters searchParameters = new SearchParameters();
        searchParameters.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
        searchParameters.setLanguage(SearchService.LANGUAGE_LUCENE);
        searchParameters.setQuery(query);
        ResultSet rs = null;
        try {
           rs = searchService.query(searchParameters);
        } finally {
           if ( rs != null ) {rs.close();}
        }


From node browser:

I run: (this query pulls out from above query string, exactly same)

+TYPE:"{http://www.alfresco.org/model/mycontentmodel/1.0}article" +@web\:parent:"workspace://SpacesStore/72069a87-4556-4801-9688-beb6e931baf6"


Thanks in advance

Outcomes