InterMine uses Solr for its keyword search index.
By default the index will include the text fields of all objects in the database. Each object in the database becomes a document in the index with text attributes attached. You can configure classes to ignore, such as locations and scores that don’t provide text information. You can also add related information to an object, for example you can configure that the synonyms, pathways and GO terms should be included in the Gene’s entry.
To inspect the index directly: http://localhost:8983/solr/
The config file is located at MINE_NAME/dbmodel/resources/keyword_search.properties
index.temp.directory
- directory for search index
index.references.<CLASS_NAME>
- eg. index.references.Gene
- index these objects’ references in addition to the normal indexing
- eg. if Gene.pathways is indexed so that when users search for pathways, the associated genes are also returned as search results
index.ignore
- do not index these classes
index.ignore.fields
- do not index these fields
- eg index.ignore.fields = SNP.type SNP.alleles
facets
- Will appear as filters on the left panel in the search results
- choose single for references, multi for collections
- Note: you must index any references used as facets. (see: above at ‘’‘index.references’‘’).
index.boost.<CLASS_NAME>
- weight this class heavier than other objects
search.debug
- debug setting off, used only for testing
index.optimize
- boolean, defaults to false.
- If set to true, reorganises the index so chunks are placed together in storage which might improve the search time. (Similar to defragmentation of a hard disk.) Requires an empty space in the storage as large as the index, and takes additional time.
The fields displayed in the keyword search results are determined by the WebConfigModel file.
If the fields are ClassKeys:
- links in blue
- shown at the top
If the fields are not ClassKeys:
- NOT linked, black text
- shown below the links
You can rebuild the search index by running this command in in your mine:
~/git/flymine $ ./gradlew postprocess -Pprocess=create-search-index
You need to re-release your webapp.
To inspect the index directly: http://localhost:8983/solr/