I have a problem with creating search functionality, I read a lot of stuff but I cannot do it. I would like to keep it simple.. I think that with elasticsearch will be good, because If possible I would like searching by tags also. It is a big project about social ads/like services, selling items/..
namespace Model
{
public class Ad : Post
{
//public Price Price = new Price();
public ISet Categories { get; set; }
public string Title { get; set; }
public DateTime ExpDate { get; set; }
public int Views { get; set; }
}
}
//i would like to use the title for searching
namespace Model
{
public class Post
{
public string Id { get; set; }
public string Content { get; set; }
public string ImageSource { get; set; }
public DateTime DatePosted { get; set; }
public DateTime LastEdited { get; set; }
}
}
//I would like to use content from here
Thank you in advance.