So... Shay said: "is there an option to configure index, store, and all the different aspects you can with constant?"
Actually no. Perhaps I implemented this feature a little too hastily :-/
So what do you think we should do?
There is the obvious solution to just configure each constant as a Map with the same keys as Compass properties:
constant name: "media", values: ["cassette", "disc"]
constant name: "media", values: ["cassette", "disc"], index: "no", excludeFromAll: true, boost: 2.0
or we could keep the current idea and allow the optional attributes in a separate section:
constant media: ["cassette", "disc"]
constant media: ["cassette", "disc"], options: [index: "no", excludeFromAll: true, boost: 2.0]
But means "options" becomes a sort of reserved word.
I think the first, although more verbose, is the better because it's more explicit and consistent than the second.
documented here: http://docs.codehaus.org/display/GRAILS/Searchable+Plugin+-+Mapping#SearchablePlugin-Mapping-constant/constants