Custom identifiers on my Rails
objects include forward slashes. For example an identifier might look like ncsu.edu/123456789
. When I try to query Solr for that identifier I'm getting back any result that has ncsu.edu
in it. The metadata for the Rails object is below:
class IntellectualObjectMetadata < ActiveFedora::RdfxmlRDFDatastream
map_predicates do |map|
map.intellectual_object_identifier(in: RDF::DC, to: 'identifier') do |index|
index.as :stored_searchable
end
end
end
And I'm querying like so:
IntellectualObject.where(desc_metadata__intellectual_object_identifier_tesim: params[:intellectual_object_identifier]).first
I was wondering if anyone had any tips on how to tokenize the Solr query so it returns only objects that match the whole identifier instead of partial matches. Thanks.