Thanks Gora for your reply.
   How can I come to know that alfresco or share is running n SOLR? I meant, 
when I login, clicking some folders or creating or uploading new files. How can 
I know that it is being done by SOLR and not by the old way before alfresco 
4.0. 

I have put the following things in my glob.prop file.
### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443
## newly added.
solr.host=localhost
solr.port=8080
# default keystores location
dir.keystore=classpath:alfresco/keystore

encryption.ssl.keystore.location=${dir.keystore}/ssl.keystore
encryption.ssl.keystore.provider=
encryption.ssl.keystore.type=JCEKS
encryption.ssl.keystore.keyMetaData.location=${dir.keystore}/ssl-keystore-passwords.properties

encryption.ssl.truststore.location=${dir.keystore}/ssl.truststore
encryption.ssl.truststore.provider=
encryption.ssl.truststore.type=JCEKS
encryption.ssl.truststore.keyMetaData.location=${dir.keystore}/ssl-truststore-passwords.properties

thanking you!





-----Original Message-----
From: Gora Mohanty [mailto:g...@mimirtech.com] 
Sent: Wednesday, December 14, 2011 5:18 PM
To: solr-user@lucene.apache.org
Subject: Re: Getting Error while running Query

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