search by file size

Help us to improve OpenKM! Be part of the Open Source Community.
Forum rules
Please, before asking something see the documentation wiki or use the forum search function.

search by file size

Postby wangmj » Wed Feb 03, 2010 5:54 am

enchance search function.
filesize. _________<=SIZE<=__________
wangmj
Junior Boarder
Junior Boarder
 
Posts: 35
Joined: Tue Dec 01, 2009 9:22 am

Re: search by file size

Postby jllort » Wed Feb 03, 2010 8:40 am

Filtering by document size no ? greater, lower or between, that's the idea no ?

This filter it'll only runs with documents ( not in folders it'll so much deep query, not recomended ).
jllort
Moderator
Moderator
 
Posts: 1840
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: search by file size

Postby wangmj » Sun Mar 07, 2010 4:54 am

I don't think so. search by file size seems like search by date,isn't it?
I find a way to resolve my problem. (xpath)

for example: (0~100K)
/jcr:root/okm:root//*[@jcr:primaryType eq 'okm:document' and @okm:content/okm:size>0 and @okm:content/okm:size<102400 ] /(@okm:author|@jcr:created)
wangmj
Junior Boarder
Junior Boarder
 
Posts: 35
Joined: Tue Dec 01, 2009 9:22 am

Re: search by file size

Postby jllort » Tue Mar 09, 2010 5:46 pm

Ok,

It could be similar as date. I take note in our enhancements tracking system.
jllort
Moderator
Moderator
 
Posts: 1840
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: search by file size

Postby wangmj » Wed Mar 10, 2010 12:39 am

thanks for you effectively work!
wangmj
Junior Boarder
Junior Boarder
 
Posts: 35
Joined: Tue Dec 01, 2009 9:22 am


Return to New features discussion

Who is online

Users browsing this forum: No registered users and 1 guest