Generic BBOP manager for dealing with gross GOlr configuration and management.
Contains bbop.golr.conf_field, bbop.golr.conf_class, and bbop.golr.conf.
TODO: better document all of this. Essentially, this is all for getting data out of a JSONized version of the YAML files used to drive the OWLTools-Solr parts of GOlr.
conf.js | Generic BBOP manager for dealing with gross GOlr configuration and management. |
bbop. | |
Functions | |
conf_field | Contructor for a GOlr search field. |
display_name | The user-facing display name. |
description | A longer description. |
id | The unique ID of this profile. |
searchable | Returns whether or not a string field has a shadow “*_searchable” field defined that is suitable for dismax searches. |
required | Returns whether or not this field is required. |
is_multi | Using the “cardinality” entry, returns whether or not this field is “single” (false) or “multi” (true). |
is_fixed | Using the “property_type” entry, returns whether or not this field is “dynamic” (false) or “fixed” (true). |
property | Returns the method of this field’s generation in the loader. |
bbop. | |
Functions | |
conf_class | Contructor for a GOlr search class. |
display_name | The user-facing display name. |
description | A longer description. |
weight | The relative weight of this search class. |
id | The unique ID of this profile. |
document_category | The document category that this personality is meant to work with. |
searchable_extension | This returns the searchable extension used for this class. |
get_field | Returns a search field by id string. |
get_fields | Return all of the fields in this search class. |
get_weights | Get the various weights we need to run. |
field_order_by_weight | Returns an array of field ids ordered by weight. |
bbop. | |
Functions | |
conf | Contructor for the GOlr query manager. |
get_class | Returns a class info object by id string. |
get_classes | Returns an array of all search classes. |
get_classes_by_weight | Returns an array of all search classes. |
Functions | |
conf_field | Contructor for a GOlr search field. |
display_name | The user-facing display name. |
description | A longer description. |
id | The unique ID of this profile. |
searchable | Returns whether or not a string field has a shadow “*_searchable” field defined that is suitable for dismax searches. |
required | Returns whether or not this field is required. |
is_multi | Using the “cardinality” entry, returns whether or not this field is “single” (false) or “multi” (true). |
is_fixed | Using the “property_type” entry, returns whether or not this field is “dynamic” (false) or “fixed” (true). |
property | Returns the method of this field’s generation in the loader. |
Functions | |
conf_class | Contructor for a GOlr search class. |
display_name | The user-facing display name. |
description | A longer description. |
weight | The relative weight of this search class. |
id | The unique ID of this profile. |
document_category | The document category that this personality is meant to work with. |
searchable_extension | This returns the searchable extension used for this class. |
get_field | Returns a search field by id string. |
get_fields | Return all of the fields in this search class. |
get_weights | Get the various weights we need to run. |
field_order_by_weight | Returns an array of field ids ordered by weight. |
this.get_fields = function()
Return all of the fields in this search class.
Array of bbop.golr.conf_field (unordered).
this.field_order_by_weight = function( weight_category, cutoff )
Returns an array of field ids ordered by weight.
The weight category can be ‘boost’, ‘result’, or ‘filter’.
weight_category | string identifying the legal weight category |
cutoff | [optional] if not defined, all listed fields in set returned |
array like [field5, field4, ...]
Functions | |
conf | Contructor for the GOlr query manager. |
get_class | Returns a class info object by id string. |
get_classes | Returns an array of all search classes. |
get_classes_by_weight | Returns an array of all search classes. |
this.get_classes = function()
Returns an array of all search classes.
Array of bbop.golr.conf_class (unordered).
this.get_classes_by_weight = function()
Returns an array of all search classes. Ordered by weight.
Array of bbop.golr.conf_class.
Contructor for a GOlr search field.
bbop.golr.conf_field = function ( field_conf_struct )
The user-facing display name.
this.display_name = function()
A longer description.
this.description = function()
The unique ID of this profile.
this.id = function()
Returns whether or not a string field has a shadow “*_searchable” field defined that is suitable for dismax searches.
this.searchable = function()
Returns whether or not this field is required.
this.required = function()
Using the “cardinality” entry, returns whether or not this field is “single” (false) or “multi” (true).
this.is_multi = function()
Using the “property_type” entry, returns whether or not this field is “dynamic” (false) or “fixed” (true).
this.is_fixed = function()
Returns the method of this field’s generation in the loader.
this.property = function()
Contructor for a GOlr search class.
bbop.golr.conf_class = function ( class_conf_struct )
The user-facing display name.
this.display_name = function()
A longer description.
this.description = function()
The relative weight of this search class.
this.weight = function()
The unique ID of this profile.
this.id = function()
The document category that this personality is meant to work with.
this.document_category = function()
This returns the searchable extension used for this class.
this.searchable_extension = function()
Returns a search field by id string.
this.get_field = function( fid )
Return all of the fields in this search class.
this.get_fields = function()
Get the various weights we need to run.
this.get_weights = function( weight_category )
Returns an array of field ids ordered by weight.
this.field_order_by_weight = function( weight_category, cutoff )
Contructor for the GOlr query manager.
bbop.golr.conf = function ( golr_conf_var )
Returns a class info object by id string.
this.get_class = function( fid )
Returns an array of all search classes.
this.get_classes = function()
Returns an array of all search classes.
this.get_classes_by_weight = function()