Find on Click: search for files with two words
7 posts
• Page 1 of 1
Find on Click: search for files with two words
I am sure that the answer to this query will be simple. I am trying to search for a file that has two separate strings in the filename (e.g. music register list.doc) When I search using two strings (e.g. *music* OR *register*) I get a list of all files that contain either of the words (e.g. music.doc, medical register.xls, etc). Is there a way to perform the search so that I only get files with both search strings?
- kL13nT
- Newbie

- Posts: 4
- Joined: Wed Dec 08, 2010 8:46 am
You'd think so, wouldn't you? Actually, I never knew you could use OR
(never needed it, never tried it). But AND doesn't seem to work, does it? I'll pass it to the developers...
- Dave Wilkins
- 2BrightSparks Staff

- Posts: 6971
- Joined: Thu Jan 04, 2007 10:02 am
PS occurs to me it may have been left out because you can of course use
music*register
or even
music*list
to find
music course register (1st key)
or
music register list (both keys)
but it would fail on
Register of music.txt
(i.e. anything with the words in the wrong order). But it may help in the meantime. Note that you don't need to always include a * at beginning and end of your search terms - it's assumed in the code, so much so that
tore
will find both store.txt & tore.txt
If you want to find only the latter (disable the assumed asterisks), then use 'tore'
music*register
or even
music*list
to find
music course register (1st key)
or
music register list (both keys)
but it would fail on
Register of music.txt
(i.e. anything with the words in the wrong order). But it may help in the meantime. Note that you don't need to always include a * at beginning and end of your search terms - it's assumed in the code, so much so that
tore
will find both store.txt & tore.txt
If you want to find only the latter (disable the assumed asterisks), then use 'tore'
- Dave Wilkins
- 2BrightSparks Staff

- Posts: 6971
- Joined: Thu Jan 04, 2007 10:02 am
Thank you very much for the help. Interestingly, when I use music*register, I don't get any results at all. In order to make the search work, I find that I have to search for *music*register*.
Not sure if this is the intended functionality, but I would certainly prefer to be able to search for music*register and have FOC assume the leading and trailing '*'s.
Not sure if this is the intended functionality, but I would certainly prefer to be able to search for music*register and have FOC assume the leading and trailing '*'s.
- kL13nT
- Newbie

- Posts: 4
- Joined: Wed Dec 08, 2010 8:46 am
Strange...which version of FindOnClick are you using (program title bar should show you)?
Incidentally, the developer confirms AND (or equivalent) simply isn't supported. It's been added to the to-do list, but it's a long list...
Incidentally, the developer confirms AND (or equivalent) simply isn't supported. It's been added to the to-do list, but it's a long list...
- Dave Wilkins
- 2BrightSparks Staff

- Posts: 6971
- Joined: Thu Jan 04, 2007 10:02 am
I am using FOC v2.0.4.4.
I found this behaviour strange as well. I thought is might be that the filename in question actually has more strings in it (e.g. music list register summary.doc). I changed the search string to music*summary, and FOC still returns no results. I have to search for *music*summary* to get any results.
I found this behaviour strange as well. I thought is might be that the filename in question actually has more strings in it (e.g. music list register summary.doc). I changed the search string to music*summary, and FOC still returns no results. I have to search for *music*summary* to get any results.
- kL13nT
- Newbie

- Posts: 4
- Joined: Wed Dec 08, 2010 8:46 am
Got it (I can replicate). I think using a wild-card in the middle must suppress the 'assumed' wildcards at the end somehow. I've reported it to the developer in case it's unintentional (but if so, don't hold your breath, as before). But there may be some deep technical reason...
- Dave Wilkins
- 2BrightSparks Staff

- Posts: 6971
- Joined: Thu Jan 04, 2007 10:02 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests