searching.rb revision 3dc4e9663ede590ca9b2d7bfafd81a13ea21cdb2
included do
searchable do
prefixes = []
end
integer :ontology_id
end
end
s = search do
end
end
end
# extract kind:<value>, if included
if kind = KIND_PATTERN.match(term)
end
# search for text
end
# search for kind
with :kind, kind.downcase if kind
# group by ontology
group :ontology_id_str do
limit 10
end
# limit result
end
end
end
end