cancel
Showing results for 
Search instead for 
Did you mean: 

Solr and search problem

knightrider
Champ on-the-rise
Champ on-the-rise
Hi!
I'm having a problem with the solr indexes on a custom data type i added. Until now, I was using a custom content model with a custom type extending the defautlt "cm:content" type. I was able to upload documents and search them using the REST API (slingshot/search).
Now, i need to add another custom type to my custom model to handle another type of documents. I added this new type in my custom model, I successfully uploaded documents of that new type with metadatas (i checked the metadatas were properly assigned with a REST request). But I'm not able to find results when I try to search documents with slingshot/search
I thought I could a problem with solr, so I decided to rebuild the indexes.
And i still have that same problem.
Is there a way to debug a resquest made using slingshot/search ? Or resquest made to solr ? or check if a document is indexed using his noderef ?

Thanks in advance,

Michael
5 REPLIES 5

rjohnson
Star Contributor
Star Contributor
Which version of Alfresco are you running. I have lots of custom types & can search on all of them.

knightrider
Champ on-the-rise
Champ on-the-rise
Sorry, I forgot to specify my alfresco version, i'm using 4.2f.
In fact, I'm able to seach through share but not though the REST API. For example, through share, i type oda:idgroupe:'22' and i get a result (of type oda:groupe). Through REST, using the slingshot/search url, i get no result. The rest request is posted below:


http://172.22.64.55:8080/alfresco/service/slingshot/search?alf_ticket=TICKET_7a46239cac368ec9ab5691e...


Basicaly, i want to search in the 'exercice-prof' site the elements of type 'oda:groupe' with a property 'oda:idgroupe' set to '22'.

rjohnson
Star Contributor
Star Contributor
The call from share is to the same service. I think there must be a differenct between the share call & your rest call.

knightrider
Champ on-the-rise
Champ on-the-rise
I've been searching all the day and it seems I can't search on a property of type 'd:int'. When i search on a property of type 'd:text' or 'd:date', no problem, but with 'd:int', no result.
How can I fix this ?

knightrider
Champ on-the-rise
Champ on-the-rise
Found the solution. There is a bug in the "/opt/alfresco-4.2.f/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/seach/search.lib.js" script. It doesn't work for 'd:int' metadata

https://issues.alfresco.com/jira/browse/MNT-11908