cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene and mimetypes

tara_b
Champ in-the-making
Champ in-the-making
Hi All,

I'm having trouble with the mimetypes coming back from a lucene search. I am using the following query:

String myQuery = "TEXT:\"expert\" AND @mx\\:keyword:\"expert systems\" AND TYPE:\"mx:LibraryContent\"";
Query query = new Query(Constants.QUERY_LANG_LUCENE, myQuery);

My result is 5 pdf and 2 doc. 
When I search from the Alfresco client, the result is 5 pdf, 2 doc, 3 docx, 1 html and 1 url.
When I re-saved one of the docx to a doc and ran the code again, the document was found.

Does anyone know whats going on? Is there a configuration somewhere regarding the format of lucene output?

Thanks much
1 REPLY 1

rliu
Champ in-the-making
Champ in-the-making
Your Lucene query string is not the same as the query string generated by the Alfresco client.

How are you doing your search in Alfresco's client?