That is index creation, I have already done this with my custom index.
What I want is a searcher but i want to set the analyser to keyword. In v7 it was just adding config element to searchers in examine config. I do recall seeing way of creating multisearcher but cannot find that code reckon its similar way of creating custom searcher.
//casting to base so that we can get to overloaded method that allows us to pass in an anlayser
//in this instance we want keyword because then we can saerch for tags with stop words like And
var searcher = (BaseLuceneSearcher)index.GetSearcher();
var query = searcher.CreateQuery(HiqhQIndexConstants.ExamineType,BooleanOperation.And,
new KeywordAnalyzer(),
new LuceneSearchOptions()).Field("__IndexType",HiqhQIndexConstants.ExamineType);
Examine create custom searcher with keyword analyser
In v8 with examine using the api how do you create a searcher with your own analyser? V7 it was all with config.
hi Ismail,
Have you had a look at https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs ? :)
That is index creation, I have already done this with my custom index.
What I want is a searcher but i want to set the analyser to keyword. In v7 it was just adding config element to searchers in examine config. I do recall seeing way of creating multisearcher but cannot find that code reckon its similar way of creating custom searcher.
Ok so there is easy way round this:
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.