Ignore:
Timestamp:
Jun 3, 2010, 4:31:44 AM (14 years ago)
Author:
gav
Message:

Improvements to inventory text search, add inventoryGroup and hide Limit Search unless one of the values is true.

Location:
trunk/grails-app/domain
Files:
2 edited

Legend:

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

    r116 r566  
    1212
    1313    String toString() {"${this.name}"}
     14
     15    static searchable = {
     16        root false // only index as a component of InventoryItem.
     17        only = ['name']
     18    }
     19
    1420}
  • trunk/grails-app/domain/InventoryItem.groovy

    r562 r566  
    6262
    6363    static searchable = {
    64         only = ['name', 'description', 'comment', 'inventoryLocation', 'spareFor']
     64        only = ['name', 'description', 'comment', 'isActive', 'isObsolete', 'inventoryLocation', 'inventoryGroup', 'spareFor']
    6565        //name boost: 1.5
    6666        inventoryLocation component: true
     67        inventoryGroup component: true
    6768        spareFor component: true
    6869    }
Note: See TracChangeset for help on using the changeset viewer.