config_separators, problem with "."

52 views
Skip to first unread message

Ben Bailes

unread,
Jun 11, 2013, 5:00:56 PM6/11/13
to resour...@googlegroups.com
Hi all,

I'm hoping someone can help me with a simple problem I have with
configuration of search that is critical for us, and I hope has a
simple solution.

We have images of our museum collection items that include accession
numbers that contain a period, for example, 1973.16. I added the .
character to our config.php file's entry for
config_separators=array("/","_",",",[etc, etc,]) initially, and it
seemed to work for us.

As our collection of images has grown, I realize that I really need
the "." to be recognized as a legitimate character. Now we have pages
and pages of results for a search for 1973.16 as it treats 1973 and 16
as totally separate terms and the real 1973.16 is buried among other
irrelevant items.

When I remove "." from the config_separators entry I only get a
suggestion that I try 1973. It returns no results at all.

I would be most grateful if someone could put me on the path to fixing
this problem. These numbers that include periods are among our most
commonly used search strings.

Thanks!
Ben

Allison Stec

unread,
Jun 11, 2013, 5:20:33 PM6/11/13
to resour...@googlegroups.com
Do you have partial indexing on? Without it you would need to search for the entire number (1973.16) after removing "." as a separator.

Partial indexing comes with a performance penalty. With having two digits after the decimal you would also want to change the minimum character number for partial indexing to 2.

In regards to using the "." as a separator...we're results being sorted by relevance? One would think relevance matching would put the result you were looking for at the top.

Another suggestion would be to create a field specifically for the accession numbers and show the field in the simple search box.

You might also want to consider configuring the search to not treat numbers as resource IDs.



Sent from my iPhone
> --
> 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/groups/opt_out.
>
>

Benjamin Bailes

unread,
Jun 13, 2013, 3:42:09 PM6/13/13
to resour...@googlegroups.com
Thanks Allison.

Partial indexing was what I needed.  I removed "." as a separator and reindexed RS.

I really appreciate the help.

Thanks!
Ben
Reply all
Reply to author
Forward
0 new messages