Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Index-Mapping/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ <h2 id="document-type:fac957943db74e6a57605072a04b8308">Document Type</h2>
<p>How does bleve know what type a document is?</p>

<ol>
<li>If your object implements the interface <code>bleve.Classifier</code> then bleve will use string returned by its <code>Type()</code> method.</li>
<li>If your object implements the interface <code>bleve/mapping.Classifier</code> then bleve will use string returned by its <code>Type()</code> method.</li>
<li>The IndexMapping has a setting called <code>TypeField</code>. You can set this to any document path, and if the value at that path is a string, that value will be used as the typed field. If you did not customize this setting the default is set to &ldquo;_type&rdquo;.</li>
<li>If no type can be determined from 1 or 2, the type is set to the IndexMapping&rsquo;s <code>DefaultType</code>. If you did not customize this setting the default is set to &ldquo;_default&rdquo;.</li>
</ol>
Expand Down