cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Query by Mimetype

faiyth
Champ in-the-making
Champ in-the-making
I've been spending the last few days trying to figure out how to limit the results of my query to only jpgs and gifs in my folder and for some reason it just isn't working. Either I get absolutely nothing at all or I get every record.

Here's the queries I've tried and their results:

LucQuery = "text:\"*jpg*\""; RESULT: 0
LucQuery = "name:\"*jpg*\""; RESULT: 0
LucQuery = "+@cm\:abstract.mimetype:\"image/jpeg\"" RESULT: 0

I have two files: image1.jpg and HomepageText.html.. so shouldn't the image be showing up? Any help you can offer would be greatly appreciated.

Thanks!
10 REPLIES 10

en64026
Champ in-the-making
Champ in-the-making
Thank you for your guidance……….. I will open a newtopic.

Kindly tell me how to display the output in text ot html format.

Thanks & Regards,
Elavarasan N.