You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2021/04/29 13:32:00 UTC

[jira] [Resolved] (JCR-3945) standalone search always no results

     [ https://issues.apache.org/jira/browse/JCR-3945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke resolved JCR-3945.
---------------------------------
    Resolution: Not A Problem

> standalone search always no results
> -----------------------------------
>
>                 Key: JCR-3945
>                 URL: https://issues.apache.org/jira/browse/JCR-3945
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-server
>    Affects Versions: 2.10.1, 2.11.3
>         Environment: linux 
> Java build 1.8.0_66-b17
>            Reporter: Werner Warner
>            Priority: Major
>
> after populate on standalone server: "browse" works and lists the documents,
> but "search" does not find anything, no matter what search term is given.
> Your search - ... - did not match any documents.
> .
> .
> .
> 2016-01-16 14:32:19.722 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] MLRUItemStateCache.java:89 Item state cache size: 0% of 4194304 bytes
> 2016-01-16 14:32:19.722 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] RepositoryImpl.java:1520 User anonymous logged in to workspace default
> 2016-01-16 14:32:19.723 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:213 Performing node.createQuery(//element(*, nt:file)[jcr:contains(jcr:content, 'is')]/rep:excerpt(.) order by @jcr:score descending, xpath)
> 2016-01-16 14:32:19.724 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:229 Performed node.createQuery(//element(*, nt:file)[jcr:contains(jcr:content, 'is')]/rep:excerpt(.) order by @jcr:score descending, xpath) in 1010300ns
> 2016-01-16 14:32:19.724 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:213 Performing query.execute(//element(*, nt:file)[jcr:contains(jcr:content, 'is')]/rep:excerpt(.) order by @jcr:score descending)
> 2016-01-16 14:32:19.724 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryImpl.java:105 Executing query: 
> + Root node
> + Select properties: {internal}excerpt()
>   + PathQueryNode
>     + LocationStepQueryNode:  NodeTest=* Descendants=true Index=NONE
>       + NodeTypeQueryNode:  Prop={http://www.jcp.org/jcr/1.0}primaryType Value={http://www.jcp.org/jcr/nt/1.0}file
>       + TextsearchQueryNode:  Path={http://www.jcp.org/jcr/1.0}content Query=is
>   + OrderQueryNode
>     {http://www.jcp.org/jcr/1.0}score asc=false
> 2016-01-16 14:32:19.726 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryResultImpl.java:261 getResults(2147483647) limit=-1
> 2016-01-16 14:32:19.726 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] TermDocsCache.java:142 #3 TermDocs(_:PROPERTIES,1570322:primaryType[5688619:file)
> 2016-01-16 14:32:19.727 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] TermDocsCache.java:142 #3 TermDocs(_:PROPERTIES,1570322:primaryType[5688619:file)
> 2016-01-16 14:32:19.727 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] TermDocsCache.java:142 #3 TermDocs(_:PROPERTIES,1570322:primaryType[5688619:file)
> 2016-01-16 14:32:19.727 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] TermDocsCache.java:142 #3 TermDocs(_:PROPERTIES,1570322:primaryType[5688619:file)
> 2016-01-16 14:32:19.728 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] TermDocsCache.java:142 #3 TermDocs(_:PROPERTIES,1570322:primaryType[5688619:file)
> 2016-01-16 14:32:19.728 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] TermDocsCache.java:142 #3 TermDocs(_:PROPERTIES,1570322:primaryType[5688619:file)
> 2016-01-16 14:32:19.729 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SortedLuceneQueryHits.java:160 getHits() 0/32768
> 2016-01-16 14:32:19.729 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryResultImpl.java:291 query executed in 3 ms (3)
> 2016-01-16 14:32:19.729 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryResultImpl.java:312 retrieved ScoreNodes in 0 ms (0)
> 2016-01-16 14:32:19.730 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:229 Performed query.execute(//element(*, nt:file)[jcr:contains(jcr:content, 'is')]/rep:excerpt(.) order by @jcr:score descending) in 5310133ns
> 2016-01-16 14:32:19.730 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryImpl.java:141 executed in 5 ms. (//element(*, nt:file)[jcr:contains(jcr:content, 'is')]/rep:excerpt(.) order by @jcr:score descending)
> 2016-01-16 14:32:19.730 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:213 Performing node.createQuery(/jcr:root[rep:spellcheck('is')]/(rep:spellcheck()), xpath)
> 2016-01-16 14:32:19.731 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:229 Performed node.createQuery(/jcr:root[rep:spellcheck('is')]/(rep:spellcheck()), xpath) in 618231ns
> 2016-01-16 14:32:19.731 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:213 Performing query.execute(/jcr:root[rep:spellcheck('is')]/(rep:spellcheck()))
> 2016-01-16 14:32:19.731 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryImpl.java:105 Executing query: 
> + Root node
> + Select properties: {internal}spellcheck()
>   + PathQueryNode
>     + LocationStepQueryNode:  NodeTest={} Descendants=false Index=NONE
>       + RelationQueryNode: Op: spellcheck Prop=[      + PathQueryNode
>         + LocationStepQueryNode:  NodeTest={http://www.jcp.org/jcr/1.0}primaryType Descendants=false Index=NONE
> ] Type=STRING Value=is
> 2016-01-16 14:32:19.731 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryResultImpl.java:261 getResults(2147483647) limit=-1
> 2016-01-16 14:32:19.732 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryResultImpl.java:291 query executed in 1 ms (2)
> 2016-01-16 14:32:19.732 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] CachingEntryCollector.java:405 Cache hit for nodeId cafebabe-cafe-babe-cafe-babecafebabe
> 2016-01-16 14:32:19.733 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryResultImpl.java:312 retrieved ScoreNodes in 1 ms (5)
> 2016-01-16 14:32:19.733 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] SessionState.java:229 Performed query.execute(/jcr:root[rep:spellcheck('is')]/(rep:spellcheck())) in 2364168ns
> 2016-01-16 14:32:19.734 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] QueryImpl.java:141 executed in 2 ms. (/jcr:root[rep:spellcheck('is')]/(rep:spellcheck()))
> 2016-01-16 14:32:19.734 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] MLRUItemStateCache.java:89 Item state cache size: 0% of 4194304 bytes
> 2016-01-16 14:32:19.734 DEBUG [234698513@qtp-1945604815-0 - /search.jsp?q=is] ItemManager.java:939 caching item cafebabe-cafe-babe-cafe-babecafebabe



--
This message was sent by Atlassian Jira
(v8.3.4#803005)