-
The value of
SEARCHABLE_ATTRIBUTES
can now optionally include method names, not just field names.This makes for easier incorporation of dynamically generated index values, because it eliminates many cases where you would have had to define a
search_indexable_hash
method. If you already have one, it'll continue to work.
bug fix
Issue #7 - adding the first document from a new model didn't configure the filterable attributes or searchable attributes. The lack of the former would cause basic searches to fail because of our expectation that "object_class" will always be a filterable field unless you've specifically designated your model as unfilterable.
Sorting & Filtering
- adds the ability to specify sortable attributes
- these default to match the filterable attributes
- filterable attributes still default to match searchable attributes
set_filterable_attributes
set_sortable_attributes
set_sortable_attributes!
reindex
andreindex!
now set searchable attributes
set_filterable_attributes!
is now synchronous as the name impliesreindex_core
correctly honors the user's async request when setting filterable attributes (previously it was always async)
ids from belongs_to
relations are no longer
indexed by default. You can explicitly specify
their inclusion if you want.
- Initial release