Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-693
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: Sami Dalouche
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

Compass GPS should not clear ALL subindexes

Created: 20/Aug/08 08:12 AM   Updated: 27/Aug/08 12:41 PM
Component/s: None
Affects Version/s: 2.1.0 M1
Fix Version/s: None

 Description  « Hide
Imagine the case where you have a few ORM-managed objects mapped to compass, and a few additional objects that are mapped independently of any CompassGps Device.

What's going to happen is that when doing gps.index(), the whole index will be deleted, and of course, the index that corresponds to the additional objects wont be re-indexed.

In my opinion, it would seem natural that CompassGps only deletes the indexes managed by gps devices.

in SingleCompassGps, it seems that the following line

could be replaced by something a little more specific. I guess this would need GpsDevices to suppot an additional method String [] getManagedSubIndexes(), or something similar.

Good luck !

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 21/Aug/08 03:42 PM
You actually have the ability to index specific sub indexes or aliases or types (classes), and only them will be indexed and replaced.

The deleteIndex is called on the indexCompass instance, which is not pointing to the "real time" index, but to the index used when reindexing the system.

Sami Dalouche added a comment - 26/Aug/08 08:09 PM

the only method I see on gpsCompass is #index(), which takes no sub index as parameter

Could you please point me to the right information ?

Shay Banon added a comment - 27/Aug/08 12:41 PM
It was added after 2.0 M1. You can find it in 2.0 GA (better yet, 2.0.2).