This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"companyName": "LinkedIn", | |
"managedBy": { | |
"name": "Novicel agency", | |
"email": "[email protected]", | |
"umbracoMemberId": 1052, | |
"umbracoMemberGuidId": "d5e2ec1b-44d8-4a71-806f-fc5a3f252e98", | |
"agency": "Agency", | |
"agencyId": 1051 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double totalDocuments = _collection.CountDocuments(predicate); | |
total = totalDocuments; | |
var pagedIems = _collection.Find(predicate).Skip(pageNo*pageSize).Limit(pageSize).ToList(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AsciiFoldingFilter | |
{ | |
private readonly Analyzer _analyzer; | |
// We are analyzing the query before adding the wildcards | |
// This way the words containg diactrics (characters specific to a language) | |
// will be folded to ASCII character set. | |
// e.g. word "weiß Glückwunsch" will be flattened into "weiss gluckwunsch" | |
// | |
// When the wildcards are added before analyzing, then the text will not be analyzed | |
// https://issues.apache.org/jira/browse/LUCENENET-486 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using Lucene.Net.Documents; | |
using System.Text; | |
using Examine; | |
using Umbraco.Core; | |
using Umbraco.Core.Logging; | |
using UmbracoExamine; | |
namespace BusinessLogic.Events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HtmlAgilityPack; | |
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using Umbraco.Core.Logging; | |
namespace Application.BusinessLogic.Services | |
{ | |
public interface IWebScraper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
import './Ownable.sol'; | |
contract CogCoin is Ownable { | |
string coinName; | |
string coinSymbol; | |
uint256 public totalSupply; | |
uint256 public dailyTransferLimit; | |
mapping (address => uint256) public wallets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private int MaxDocs() | |
{ | |
BaseSearchProvider searcher = ExamineManager.Instance.SearchProviderCollection["ExternalSearcher"]; | |
var baseSeacher = (LuceneSearcher) _searcher; | |
var folder = baseSeacher.LuceneIndexFolder; | |
var fsDir = FSDirectory.Open(folder); | |
var reader = IndexReader.Open(fsDir, true); | |
int maxDocCount = reader.NumDocs(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AsciiFoldingFilter | |
{ | |
private readonly Analyzer _analyzer; | |
// We are analyzing the query before adding the wildcards | |
// This way the words containg diactrics (characters specific to a language) | |
// will be folded to ASCII character set. | |
// e.g. word "weiß Glückwunsch" will be flattened into "weiss gluckwunsch" | |
// | |
// When the wildcards are added before analyzing, then the text will not be analyzed | |
// https://issues.apache.org/jira/browse/LUCENENET-486 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Globalization; | |
using Examine; | |
using Examine.LuceneEngine; | |
using Examine.LuceneEngine.Providers; | |
using ExamineContrib.Spatial.Model; | |
using Lucene.Net.Documents; | |
using Lucene.Net.Spatial.Tier.Projectors; | |
using Lucene.Net.Util; | |
using Umbraco.Core; |