November Happy Hour will be moved to Thursday December 5th.

Using EPiServer Search for files

Vote:
 

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;


Any ideas of how to fix this?

Best,

Marcus

#148575
May 17, 2016 15:24
Vote:
 

UPDATE:

I got the search to include files by adding a property to my MediaData class, so what actually is not working right now is searching for filenames.

#148640
May 19, 2016 10:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.