Ignore:
Timestamp:
Jun 2, 2010, 4:31:17 PM (14 years ago)
Author:
gav
Message:

Install searchable plugin, configure and start inventory search.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/InventoryItem.groovy

    r484 r562  
    6161    String toString() {"${this.name}"}
    6262
     63    static searchable = {
     64        only = ['name', 'description', 'comment', 'inventoryLocation', 'spareFor']
     65        //name boost: 1.5
     66        inventoryLocation component: true
     67        spareFor component: true
     68    }
     69
    6370    def afterInsert = {
    6471        addReverseAlternateItems()
Note: See TracChangeset for help on using the changeset viewer.