|
| 1 | +<!-- Search Api specific fields --> |
| 2 | +<!-- item_id contains the entity ID, e.g. a node's nid. --> |
| 3 | +<field name="item_id" type="string" indexed="true" stored="true" /> |
| 4 | + |
| 5 | +<!-- Apache Solr Search Integration specific fields --> |
| 6 | +<!-- entity_id is the numeric object ID, e.g. Node ID, File ID --> |
| 7 | +<field name="entity_id" type="long" indexed="true" stored="true" /> |
| 8 | +<!-- entity_type is 'node', 'file', 'user', or some other Drupal object type --> |
| 9 | +<field name="entity_type" type="string" indexed="true" stored="true" /> |
| 10 | +<!-- bundle is a node type, or as appropriate for other entity types --> |
| 11 | +<field name="bundle" type="string" indexed="true" stored="true"/> |
| 12 | +<field name="bundle_name" type="string" indexed="true" stored="true"/> |
| 13 | +<field name="url" type="string" indexed="true" stored="true"/> |
| 14 | +<!-- label is the default field for a human-readable string for this entity (e.g. the title of a node) --> |
| 15 | +<field name="label" type="text" indexed="true" stored="true" termVectors="true" omitNorms="true"/> |
| 16 | + |
| 17 | +<!-- content is the default field for full text search - dump crap here --> |
| 18 | +<field name="content" type="text" indexed="true" stored="true" termVectors="true"/> |
| 19 | +<field name="teaser" type="text" indexed="false" stored="true"/> |
| 20 | +<field name="path" type="string" indexed="true" stored="true"/> |
| 21 | +<field name="path_alias" type="text" indexed="true" stored="true" termVectors="true" omitNorms="true"/> |
| 22 | + |
| 23 | +<!-- These are the fields that correspond to a Drupal node. The beauty of having |
| 24 | + Lucene store title, body, type, etc., is that we retrieve them with the search |
| 25 | + result set and don't need to go to the database with a node_load. --> |
| 26 | +<field name="tid" type="long" indexed="true" stored="true" multiValued="true"/> |
| 27 | +<field name="taxonomy_names" type="text" indexed="true" stored="false" termVectors="true" multiValued="true" omitNorms="true"/> |
| 28 | +<!-- copyField commands copy one field to another at the time a document |
| 29 | + is added to the index. It's used either to index the same field differently, |
| 30 | + or to add multiple fields to the same field for easier/faster searching. --> |
| 31 | +<!-- Since sorting by ID is explicitly allowed, store item_id also in a sortable way. --> |
| 32 | +<copyField source="item_id" dest="sort_search_api_id" /> |
| 33 | + |
| 34 | +<!-- The string version of the title is used for sorting --> |
| 35 | +<copyField source="label" dest="sort_label"/> |
| 36 | + |
| 37 | +<!-- Copy terms to a single field that contains all taxonomy term names --> |
| 38 | +<copyField source="tm_vid_*" dest="taxonomy_names"/> |
| 39 | + |
| 40 | +<copyField source="label" dest="spell"/> |
| 41 | +<copyField source="content" dest="spell"/> |
| 42 | + |
| 43 | +<copyField source="ss_*" dest="sort_*"/> |
| 44 | + |
| 45 | +<dynamicField name="hss_*" type="sint" indexed="true" stored="true" multiValued="false"/> |
| 46 | +<dynamicField name="hsm_*" type="sint" indexed="true" stored="true" multiValued="true"/> |
| 47 | +<!-- Sortable fields, good for sortMissingLast support & |
| 48 | + We use long for integer since 64 bit ints are now common in PHP. --> |
| 49 | +<dynamicField name="iss_*" type="slong" indexed="true" stored="true" multiValued="false"/> |
| 50 | +<dynamicField name="ism_*" type="slong" indexed="true" stored="true" multiValued="true"/> |
| 51 | +<!-- In rare cases a sfloat rather than tfloat is needed for sortMissingLast --> |
| 52 | +<dynamicField name="fss_*" type="sfloat" indexed="true" stored="true" multiValued="false"/> |
| 53 | +<dynamicField name="fsm_*" type="sfloat" indexed="true" stored="true" multiValued="true"/> |
| 54 | +<dynamicField name="pss_*" type="sdouble" indexed="true" stored="true" multiValued="false"/> |
| 55 | +<dynamicField name="psm_*" type="sdouble" indexed="true" stored="true" multiValued="true"/> |
| 56 | + |
| 57 | +<!-- |
| 58 | + A set of fields to contain text extracted from HTML tag contents which we |
| 59 | + can boost at query time. |
| 60 | +--> |
| 61 | +<dynamicField name="tags_*" type="text" indexed="true" stored="false" omitNorms="true"/> |
0 commit comments