I have installed EPiServer Search and it works fine to search for pages. However, I can't get it to include files in the search results. Searching files works in the edit mode so indexing seems to work.
This is the way I fetch the SearchResults
var fieldQuery = new GroupQuery(LuceneOperator.AND);
fieldQuery.QueryExpressions.Add(new FieldQuery(query));
fieldQuery.QueryExpressions.Add(aclQuery);
var fuzzyQuery = new GroupQuery(LuceneOperator.AND);
fuzzyQuery.QueryExpressions.Add(new FuzzyQuery(query, 0.8f));
fuzzyQuery.QueryExpressions.Add(aclQuery);
var completeQuery = new GroupQuery(LuceneOperator.OR);
completeQuery.QueryExpressions.Add(fieldQuery);
completeQuery.QueryExpressions.Add(fuzzyQuery);
var res = SearchHandler.Instance.GetSearchResults(completeQuery, page + 1, pageSize)
.IndexResponseItems;
I have installed EPiServer Search and it works fine to search for pages. However, I can't get it to include files in the search results. Searching files works in the edit mode so indexing seems to work.
This is the way I fetch the SearchResults
Any ideas of how to fix this?
Best,
Marcus