This is my first site using any kind of Examine based search and have been having problems with ezSearch I just can't work out.
Added a page with some lorem ipsum text, and searched for lorem; but got no results, with any combination of macro parameters. Currently I am using all default, except searching only content.
I installed the Examine Inspector and indexes and everything are fine, and could run the search in that and get what I expected.
I currently have the search working by commenting out the lines that build path filtering in the query, but that is obviously not ideal.
The weird behaviour is that I printed out the query being run:
In ezSearch, this gives me no results - but in Examine Inspector I get loads of results which don't container lorem at all. Remove the path filter clause and both ezSearch and Examine Inspector return the expected result.
I don't know enough about Lucene to have any idea where to start with this - are you able to shed any light?
But these is not my main problem. It is that ranking/sorting is not working. It seems that my result page items are grouped for som reason. Were do I switch off the grouping of search resulta items?
Weird problems with path filters, Umbraco v6.1.5
This is my first site using any kind of Examine based search and have been having problems with ezSearch I just can't work out.
Added a page with some lorem ipsum text, and searched for lorem; but got no results, with any combination of macro parameters. Currently I am using all default, except searching only content.
I installed the Examine Inspector and indexes and everything are fine, and could run the search in that and get what I expected.
I currently have the search working by commenting out the lines that build path filtering in the query, but that is obviously not ideal.
The weird behaviour is that I printed out the query being run:
In ezSearch, this gives me no results - but in Examine Inspector I get loads of results which don't container lorem at all. Remove the path filter clause and both ezSearch and Examine Inspector return the expected result.
I don't know enough about Lucene to have any idea where to start with this - are you able to shed any light?
Hi
I almost have the same problem.
which line did you out comment?
I think it it these lines that Rob commented out:
/*
var contentPathFilter = model.RootContentNodeId > 0
? string.Format("__IndexType:{0} +searchPath:{1} -template:0", UmbracoExamine.IndexTypes.Content, model.RootContentNodeId)
: string.Format("__IndexType:{0} -template:0", UmbracoExamine.IndexTypes.Content);
var mediaPathFilter = model.RootMediaNodeId > 0
? string.Format("__IndexType:{0} +searchPath:{1}", UmbracoExamine.IndexTypes.Media, model.RootMediaNodeId)
: string.Format("__IndexType:{0}", UmbracoExamine.IndexTypes.Media);
switch (model.IndexType)
{
case UmbracoExamine.IndexTypes.Content:
query.AppendFormat("+({0}) ", contentPathFilter);
break;
case UmbracoExamine.IndexTypes.Media:
query.AppendFormat("+({0}) ", mediaPathFilter);
break;
default:
query.AppendFormat("+(({0}) ({1})) ", contentPathFilter, mediaPathFilter);
break;
}
*/
But these is not my main problem. It is that ranking/sorting is not working. It seems that my result page items are grouped for som reason. Were do I switch off the grouping of search resulta items?
is working on a reply...