[GCI-27] SquidDev
Editing the searchable property
Grails models have a searchable property, which allows you to change which fields are searchable. The Module class currently has 'name' and 'description' set as searchable, with 'name' having a boost of 2.0. Changing this to a negative number, or setting a larger boost for description means a module is ranked higher if its description contains a string than if its name contains the same string.
Using dateCreated format: "yyyyMMdd"
allows you to filter between dates (dateCreated:[201401* TO 201406*] would allow you to get all releases between January and June 2014).
Searching
Some elements of Lucene do not work as expected because Modulus changes some strings, to include wildcards. Forcing complex: true in Modulus-UI enables you to use these features.
Fuzzy searching: Lucene's fuzzy searching allows you to to match strings similar to the specified one. forms~
matches matches forms and form.
Specifying fields and wildwards: name:s*tion
shows any module whose name starts with s and ends with tion (serialization, syncronization).