"Wildcard always applied" vs. partial indexing

96 views
Skip to first unread message

Clea Mahoney

unread,
Feb 10, 2016, 3:41:57 PM2/10/16
to ResourceSpace
Hi,

I'm a non-techy person who is helping my organization set up ResourceSpace, mainly to serve as an image repository for marketing purposes.

We recently added the "$wildcard_always_applied" to our config but I was under the impression that this would only apply the wildcard to the end of a term, e.g. animal = animals. It seems like it's working partially, e.g. a search for "nimal" returns nada, which is perfect.

However, other search terms seem to apply the wildcare anywhere - a search for "air" returns "Cairns" (a photographer whose work we feature quite heavily, so this leads to a mass of (basic) search results. Is there a way I can limit where the wildcard is applied?

And what (if there is one) is the difference between setting up this wildcard config v. just turning on partial indexing on the keywords field?

Many thanks,
Clea

Allison M Stec

unread,
Feb 10, 2016, 3:55:08 PM2/10/16
to resour...@googlegroups.com
I can tell you that partial indexing will result in searches for "air" returning "Cairns". So, partial indexing is, as you put it, like putting the wildcard at the beginning and/or end of a search string.

I can't offer insight to the wildcard use, but maybe someone else will chime in.

Also, if you could tell us what the end goal is, perhaps someone can provide a solution.
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
--
ResourceSpace Developer
Reseller of Colorhythm's Prismpoint Portal DAM

Ask me about ResourceSpace AWS Plugins

Dan Huby

unread,
Feb 10, 2016, 4:19:21 PM2/10/16
to ResourceSpace
Hi,

"air" should not match "cairns" when $wildcard_always_applied is switched on. It only expands to the right as you point out with "nimals" not matching "animals".

Are you sure "air" or some other word starting with "air" doesn't exist in those records? 

I would strongly advise against using partial indexing for anything other than very specific cases where there's a small string entered in to a field (such as a product code) because it hugely expands the number of keywords indexed and will slow your system down if used for general text.

Dan

Clea Mahoney

unread,
Feb 11, 2016, 5:05:33 AM2/11/16
to resour...@googlegroups.com
Hi Allison and Dan,

Thanks very much for your replies. I wonder if I need to reindex - perhaps I inadvertently forgot to do so after turning partial indexing back off again. To confirm, the "air" = "Cairns" results don't have any fields containing words starting with "air." I may have tried to reindex but left the site before the work had finished, and perhaps that's why the wildcard functionality isn't working as expected yet.

I'll give that a try and report back, as the "only expands to the right" function is exactly what we're trying to achieve.

Best wishes,
Clea

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to a topic in the Google Groups "ResourceSpace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/resourcespace/idVSmAFuzjU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to resourcespac...@googlegroups.com.

Clea Mahoney

unread,
Feb 11, 2016, 3:35:35 PM2/11/16
to ResourceSpace
Bingo - I still had partial indexing on in keywords (d'oh!) and reindexing fixed it. Thanks again for your help, guys.

-Clea
To unsubscribe from this group and all its topics, send an email to resourcespace+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages