1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2025-06-30 14:38:28 +00:00

now images are lower cased, and searching for names is insensitive.

for your mongo db set, run:
db.fs.files.find().forEach(
  function(e) {
    e.filename = e.filename.toLowerCase();
    db.fs.files.save(e);
  }
)
This commit is contained in:
Vincent Batts 2013-08-06 10:37:58 -04:00
parent 80e9381754
commit 5eab319c6c
4 changed files with 33 additions and 25 deletions

View file

@ -44,10 +44,9 @@ func (f *File) IsAudio() bool {
}
/*
Structure used for collecting the keyword usage for the tag cloud
Structure used for collecting values from mongo for a tag cloud
*/
type KeywordCount struct {
Id string "_id"
type IdCount struct {
Id string "_id"
Value int
}