We have a client site , with SOLR for searching products . The Code base for returning the search results is shown below. The products searched are based on search term entered by user
Code
var query = context.GetQueryable<SearchResultItem>();
query = query.AddContentSearchQuery(this._searchTerm);
query = query.Filter(predicate);
AddContentSearchQuery Matches the search text
public static IQueryable<SearchResultItem> AddContentSearchQuery(this IQueryable<SearchResultItem> query, string searchTerms)
{
if (string.IsNullOrEmpty(searchTerms))
return query;
searchTerms = searchTerms.Trim(' ').Replace(' ', '@');
return query.Where(i => i.Content == searchTerms);
}
here i.Content is from Sitecore.ContentSearch.SearchTypes.SearchResultItem
[DataMember]
**[IndexField("_content")]**
public virtual string Content { get; set; }
Can you please help me in understanding the analyzer used here ( Does it tokenize the search content)
This is the entry from Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config
<field fieldName="_content" returnType="string" type="Sitecore.ContentSearch.ComputedFields.MediaItemContentExtractor,Sitecore.ContentSearch">
<mediaIndexing ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/mediaIndexing"/>
</field>
What I understand is the _content field indexes the full content of the website. but is it also Tokenized ?