Searching ExternalIndex for related content
# help-with-umbraco
s
On my current project a lot of content is being tagged with a Contentment.DataList. How would you go about finding related content in the ExternalIndex ? I have a simple text search looking something like this, which works as expected:
Copy code
var query = index.Searcher.CreateQuery(IndexTypes.Content);
    var queryExecutor = query.ManagedQuery(searchTerm);
    var results = _publishedContentQuery.Search(queryExecutor);
Could this be modified, so instead of text it is comparing the tags of the current document, with similar tags in the index ?
m
At least for the inroads for custom indexing requirements
AFAIK Of old with tags being a list.. you had to add a new field with the list converted from csv to space separated. (at least that was one approach) https://github.com/callumbwhyte/umbraco-search-extensions/tree/dev this package has a new
list
examine field type
which I think does the heavy lifting... https://github.com/callumbwhyte/umbraco-search-extensions/tree/dev?tab=readme-ov-file#core-fields
3 Views