Skip to content

Commit 22c4d36

Browse files
authored
Merge pull request #7448 from umbraco/cms/examine-index-example
Added `ComposeAfter` attribute to composer used in Examine sample
2 parents 608f6dd + e9c9ac2 commit 22c4d36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

16/umbraco-cms/reference/searching/examine/indexing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ using Umbraco.Cms.Core.DependencyInjection;
5454

5555
namespace Umbraco.Docs.Samples.Web.CustomIndexing;
5656

57+
[ComposeAfter(typeof(Umbraco.Cms.Infrastructure.Examine.AddExamineComposer))]
5758
public class ExamineComposer : IComposer
5859
{
5960
public void Compose(IUmbracoBuilder builder)
@@ -63,6 +64,10 @@ public class ExamineComposer : IComposer
6364
}
6465
```
6566

67+
{% hint style="info" %}
68+
The use of the `ComposeAfter` attribute guarantees that the composer will run after the core composer responsible for setting up the default index details.
69+
{% endhint %}
70+
6671
### Changing field value types
6772

6873
By default, Examine will store values into the Lucene index as "Full Text" fields, meaning the values will be indexed and analyzed for a textual search. However, if a field value is numerical, date/time, or another non-textual value type, you might want to change how the value is stored in the index. This will let you take advantage of some value type-specific search features such as numerical or date range.

0 commit comments

Comments
 (0)