public int Fetch(Guid jobAdId) { var filter = new SpecialsFilter(SearchFieldName.Id, false, new[] { jobAdId.ToFieldValue() }); var request = CreateRequest(null, filter, null, null, 0, 1, false); var result = _browser.browse(request); var hits = result.getHits(); if (hits != null && hits.Length == 1) { return(hits[0].getDocid()); } return(-1); }
public JobAdSearchResults Sort(Filter filter, SortField[] sorts, int skip, int take) { var request = CreateRequest(filter, sorts, skip, take); var result = _browser.browse(request); return(GetSortResults(result, skip, take)); }
public MemberSearchResults Search(LuceneQuery query, LuceneFilter filter, IEnumerable <BrowseSelection> selections, SortField[] sorts, int skip, int take, bool includeFacets) { var request = CreateRequest(query, filter, selections, sorts, skip, take, includeFacets); var result = _browser.browse(request); return(GetSearchResults(result, skip, take)); }