searching.rb revision 0d0e4218821cf9a40977197eebcb9eafbc6a7989
included do
searchable do
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