It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
var gateway = $.connection.gatewayHub;
novus.initialize();
$.connection.hub.start().done(function () {
// define some arbitrary user define meta data...
var testMeta =
{
"Backdrop": "",
"Poster": "",
"Genres": ["Action", "Animated"],
"ReleaseDate": "2017-02-10",
"Runtime": 20.0,
"VideoType": 2,
"Title": "Xintel",
"Type": "video",
"Hash": "QmU3o9bvfenhTKhxUakbYrLDnZU7HezAVxPM6Ehjw9test",
"Description": "Sintel"
};
// a bit hacky atm... but this will be improved later.
var query = [
['WHERE', 'JsonValue', '$.Title', '~=', 'Xin'], // title contains
['WHERE', 'JsonValue', '$.VideoType', '=', '2'], // video is movie
['ORDERBY_IN', 'JsonQuery', '$.Genres', 'DESC', 'Action', 'Mystery']
];
gateway.server.addIndexedFile(JSON.stringify(testMeta))
.done(function (result) {
console.log(result);
if (result == 'Added') {
// successful, ok lets search for it!
gateway.server.searchQuery(query)
.done(function (data) {
// print search results
for (var i = 0; i < data.length; i++) {
var obj = JSON.parse(data[i]);
console.log(obj);
}
});
}
});
});
public class FileMetaData
{
public string Title { get; set; }
public string Type { get; set; }
public string Hash { get; set; }
public string Description { get; set; }
public string PreferredNode { get; set; }
}
public enum VideoMetaDataType
{
Other,
Episodes,
Film
}
public class VideoMetaData : FileMetaData
{
public string Backdrop { get; set; }
public string Poster { get; set; }
public string[] Genres { get; set; }
public DateTime? ReleaseDate { get; set; }
public decimal? Runtime { get; set; }
public VideoMetaDataType VideoType { get; set; }
}