Class ActsAsIndexed::SearchAtom
In: lib/acts_as_indexed/search_atom.rb
Parent: Object

Methods

Attributes

records  [R]  Contains a hash of records. { ‘record_id’ => [pos1, pos2, pos] }

Public Class methods

Public Instance methods

Creates a new SearchAtom with the combined records from self and other

Creates a new SearchAtom with records in other removed from self.

Adds pos to the array of positions for record_id.

Adds record_id to the stored records.

Returns true if the given record is present.

Returns an array of positions for record_id stored in this Atom.

Returns at atom containing the records and positions of self preceded by former "former latter" or "big dog" where "big" is the former and "dog" is the latter.

Returns all record IDs stored in this Atom.

Removes record_id from this Atom.

Returns a hash of record_ids and weightings for each record in the atom.

Protected Instance methods

[Validate]