cancel
Showing results for 
Search instead for 
Did you mean: 

Troubles with Solr admin serching

vladislavlysov
Champ in-the-making
Champ in-the-making
Hello!!!
    I was install Alfresco 4.0b and uploaded a few files(with .txt extension) through the Share. After that a was opened Solr admin at this URL http:\\localhost:8888\solr\alfresco\admin. Then I typed my query(for example - " @cm\:name:"green banana"") in the query field. I know - this file in Alfresco Share, i see him) But this query returned 0 documents. I think this is due to the fact that he was looking at some other location, not in Alfresco Repository.How can I ensure that my query returns a found documents downloaded from Alfresco Share?
P.S. If i type in query field this query "*:*", its returned next json

{
"responseHeader":{
  "status":0,
  "QTime":15,
  "params":{
   "indent":"on",
   "start":"0",
   "q":"*:*",
   "rows":"10",
   "version":"2.2"}},
"response":{"numFound":1658,"start":0,"docs":[
   {
    "INACLTXID":["1"],
    "ACLID":["1"],
    "ID":["ACL-1"]},
   {
    "INACLTXID":["1"],
    "ACLID":["2"],
    "ID":["ACL-2"]},
   {
    "INACLTXID":["1"],
    "ACLTXCOMMITTIME":["1320818862645"],
    "ACLTXID":["1"],
    "ID":["ACLTX-1"]},
   {
    "INACLTXID":["2"],
    "ACLID":["3"],
    "ID":["ACL-3"]},
   {
    "INACLTXID":["2"],
    "ACLID":["4"],
    "ID":["ACL-4"]},
   {
    "INACLTXID":["2"],
    "ACLTXCOMMITTIME":["1320818862942"],
    "ACLTXID":["2"],
    "ID":["ACLTX-2"]},
   {
    "INACLTXID":["3"],
    "READER":["GROUP_EVERYONE"],
    "ACLID":["5"],
    "ID":["ACL-5"]},
   {
    "INACLTXID":["3"],
    "ACLTXCOMMITTIME":["1320818863113"],
    "ACLTXID":["3"],
    "ID":["ACLTX-3"]},
   {
    "INACLTXID":["4"],
    "READER":["GROUP_EVERYONE"],
    "ACLID":["6"],
    "ID":["ACL-6"]},
   {
    "INACLTXID":["4"],
    "ACLTXCOMMITTIME":["1320818863145"],
    "ACLTXID":["4"],
    "ID":["ACLTX-4"]}]
}}
Thank you.
10 REPLIES 10

andy
Champ on-the-rise
Champ on-the-rise
Hi

Please do not use the SOLR admin page to execute queries.
The default query language is not an Alfresco one and it knows nothing of the Alfresco data model.

You can do something like this direct to SOLR if you have to :

https://localhost:8443/solr/alfresco/afts?q=name:*

Or you can go to the share node browser in teh admin screens and run queries from there.

Andy