On Wed, Dec 14, 2011 at 5:00 PM, Sanket Shah <sanket.s...@cignex.com> wrote:
> Hi All,
>
>   I am sorry If I have sent this email at wrong list. If it is then
> kindly let me know!
>
>   I am using Alfresco 4.0 which is having SOLR for Lucene. I am able to
> see the SOLR page and also able to fire queris But they do not return
> any results and sometimes giving errors. I am using SOLR UI
> (https://localhost:8443/solr/alfresco/admin/ ).
[...]
> <result name="response" numFound="0" start="0" maxScore="0.0"/>
[...]

The 'numfound="0"' indicates that no documents matched
the search string. Maybe the indexing is not done properly:
Could you try searching for *:* from the Solr admin. interface?
This should return all documents indexed into Solr.

> Also sometime I get exception like
>
> HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot
> parse '@cm:name:sanket': Encountered " ":" ": "" at line 1, column 8.
> Was expecting one of: <EOF> <AND> ... <OR> ... <NOT> bla..bla ..bla..

The colon, :, is a special character for Solr, and needs to be escaped, as
you did in your first example. Please see
http://wiki.apache.org/solr/SolrQuerySyntax#NOTE:_URL_Escaping_Special_Characters

Regards,
Gora

Reply via email to