The Advanced Search for Keywords is really powerful, but I can only search 1 keyword. Is there a way to search 2 unrelated keywords? For example, I want to be able to find “Pine Tree Circle” by searching “pine” and “circle.”
Hi @THS ,
There is a section on searching in the documentation Searching - Omeka Classic User Manual
It looks like you should be do this for boolean searching if you’re using MySQL, but it doesn’t look like it’s working in your instance.
pine +circle
The “keyword” advanced item search entry is a little bit of an odd duck: it doesn’t use MySQL’s fulltext searching, but instead looks for your string to literally appear in element texts or tags. So when using that “keyword” input, it’s only going to match exact phrases.
The sitewide search bar in the top-right corner of your site does use the fulltext search, which does work the way you’re looking for: it looks for each word in your query separately. So it works on the query you gave as an example.
Alternatively you can use the “specific fields” search to get a similar result (like this) but then you’ll have to pick an element to search rather than all of them.
Hi @jflatnes , I also have a problem with the “sitewide search bar in the top-right corner.” In your example, you will see that searching my 2 keywords finds everything with “pine” OR “circle.” I only want to see results that include both.
The “specific fields” search is good but takes more time to set up. And I might need to search multiple fields.
Ah, yes, I gave a bad example there: it is possible to get “AND” behavior from that bar, but it’s a little more involved. You have to pick “boolean” mode from the advanced settings up there, then put a plus sign before each term you want to require. And this is the result.
Thanks @jflatnes , but that’s not the search bar I want to use. I don’t like the way it works or displays results. In fact, I want to get rid of it. I only work with the Advanced “Search for Keywords” bar and would like to add that there instead. Do you know how?