Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-3906

Searching for document with 2 words as search string leads to exception in logs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • r2.12.05
    • r2.12.06, r2.13.00
    • None
    • None

    Description

      CMS 2010-03-01 16:58:04,942 ERROR [org.hippoecm.frontend.plugins.standards.search.TextSearchBuilder] Error executing query[text]: //element(*, hippo:harddocument)[(hippo:paths = '2c21a29c-a5d1-4e84-aec4-594e5bf93b25') and jcr:contains(., 'keyword*')jcr:contains(., 'detail*')]/rep:excerpt(.)
      javax.jcr.query.InvalidQueryException: Lexical error at line 1, column 137. Encountered: "c" (99), after : ":" for statement: for $v in //element(*, hippo:harddocument)[(hippo:paths = '2c21a29c-a5d1-4e84-aec4-594e5bf93b25') and jcr:contains(., 'keyword*')jcr:contains(., 'detail*')]/rep:excerpt(.) return $v: Lexical error at line 1, column 137. Encountered: "c" (99), after : ":": Lexical error at line 1, column 137. Encountered: "c" (99), after : ":"
      at org.apache.jackrabbit.spi.commons.query.xpath.XPathQueryBuilder.<init>(XPathQueryBuilder.java:303)
      at org.apache.jackrabbit.spi.commons.query.xpath.XPathQueryBuilder.createQuery(XPathQueryBuilder.java:332)
      at org.apache.jackrabbit.spi.commons.query.xpath.QueryBuilder.createQueryTree(QueryBuilder.java:39)
      at org.apache.jackrabbit.spi.commons.query.QueryParser.parse(QueryParser.java:57)
      at org.apache.jackrabbit.core.query.lucene.QueryImpl.<init>(QueryImpl.java:92)
      at org.apache.jackrabbit.core.query.lucene.SearchIndex.createExecutableQuery(SearchIndex.java:618)
      at org.apache.jackrabbit.core.query.QueryImpl.init(QueryImpl.java:128)
      at org.apache.jackrabbit.core.SearchManager.createQuery(SearchManager.java:316)
      at org.apache.jackrabbit.core.query.QueryManagerImpl.createQuery(QueryManagerImpl.java:102)
      at org.hippoecm.repository.decorating.QueryManagerDecorator.createQuery(QueryManagerDecorator.java:42)
      at org.hippoecm.repository.impl.QueryManagerDecorator.createQuery(QueryManagerDecorator.java:42)
      at org.hippoecm.repository.decorating.checked.QueryManagerDecorator.createQuery(QueryManagerDecorator.java:48)
      at org.hippoecm.frontend.plugins.standards.search.QueryResultModel.load(QueryResultModel.java:49)
      at org.hippoecm.frontend.plugins.standards.search.QueryResultModel.load(QueryResultModel.java:27)
      at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:122)
      at org.hippoecm.frontend.plugins.standards.browse.BrowserSearchResult.getQueryResult(BrowserSearchResult.java:48)
      at org.hippoecm.frontend.plugins.standards.list.SearchDocumentsProvider.load(SearchDocumentsProvider.java:65)
      at org.hippoecm.frontend.plugins.standards.list.SearchDocumentsProvider.size(SearchDocumentsProvider.java:124)
      at org.hippoecm.frontend.plugins.standards.list.datatable.ListDataTable.render(ListDataTable.java:158)
      at org.hippoecm.frontend.plugins.cms.browse.list.SearchDocumentListingPlugin.render(SearchDocumentListingPlugin.java:151)
      at org.hippoecm.frontend.plugins.cms.browse.DocumentCollectionView.render(DocumentCollectionView.java:142)
      at org.hippoecm.frontend.plugins.cms.browse.Navigator.render(Navigator.java:103)
      at org.hippoecm.frontend.service.render.AbstractRenderService.render(AbstractRenderService.java:386)
      at org.hippoecm.frontend.service.render.RenderPlugin.render(RenderPlugin.java:124)
      at org.hippoecm.frontend.plugins.standards.tabs.TabsPlugin.render(TabsPlugin.java:127)

      Attachments

        Activity

          People

            spelissier Sylvain Pélissier (Inactive)
            jreijn Jeroen Reijn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: