Hi,
I did not find Help method in the SearchHelper. The api example for searching using Search method you can find here:
search api exapleYou can see the search text (including filters) in the searchText parameter, so if you run a debug, you will see what is sent to lucene.
Here is a more complex example which searches according to the longitute and latitude:
string combinedSearch = "+(+longitude:[10000000048.9707534505 TO 10000000049.1502705495]) +classname:[cms.news TO cms.news] +_culture:([en-us TO en-us] [invariantifieldivaluei TO invariantifieldivaluei]) ";
string path = "";
string DocumentTypes = "CMS.News";
string culture = "en-US";
string defaultCulture = "en-US";
bool CombineWithDefaultCulture = false;
bool CheckPermissions = false;
bool SearchInAttachments = false;
string Indexes = "CorporateSite.Default";
int displayResults = 10;
int startPosition = 0;
int numberOfProceeded = 110;
int numberOfResults = 0;
UserInfo user = UserInfoProvider.GetUserInfo(CMSContext.CurrentUser.UserName);
DataSet results = SearchHelper.Search(combinedSearch,
SearchHelper.GetSort("##SCORE##"),
path,
DocumentTypes,
culture,
defaultCulture,
CombineWithDefaultCulture,
CheckPermissions,
SearchInAttachments,
Indexes,
displayResults,
startPosition,
numberOfProceeded,
user,
out numberOfResults,
"",
"");
}
Best regards,
Ivana Tomanickova