简体   繁体   English

MongoDB,elasticsearch URL索引

[英]MongoDB, elasticsearch URL indexing

I am new to Mongodb and ElasticSearch. 我是Mongodb和ElasticSearch的新手。 My requirement would be to allow users to kind of bookmark either a full page or a part of the page. 我的要求是允许用户在整个页面或页面的一部分中添加书签。

I handled the front end but would like to know how to design the backend.. Ie how to store the webpage details in the mongodb and index using elastic search. 我处理了前端,但想知道如何设计后端。即如何使用弹性搜索将网页详细信息存储在mongodb和索引中。 Would it be a good idea to store the whole web content in mongodb or just a url. 将整个Web内容存储在mongodb或仅将URL中存储是一个好主意。 In case its just a url, how does Elastic search find the keywords inside the url when we do a restful call. 如果它只是一个URL,那么当我们进行一次轻松的通话时,Elastic search如何在URL中找到关键字。

Appreciate your time.. 感谢您的时间。

IMHO there is too little information to fully answer this. 恕我直言,没有太多信息可以完全回答这个问题。 Are you sure you need both MongoDB and ElasticSearch? 您确定同时需要MongoDB和ElasticSearch吗? I wouldn't underestimate the overhead for development and operations. 我不会低估开发和运营的开销。

In the upcoming release, MongoDB 2.4 will have (somewhat limited) fulltext-search capabilities. 在即将发布的版本中,MongoDB 2.4将具有(有所限制)全文搜索功能。

ElasticSearch can do "regular" GET queries like a database. ElasticSearch可以像数据库一样执行“常规” GET查询 For searching inside a specific field (like the URL) see the SEARCH documentation and make good use of * (wildcard) and ~ (fuzzy search). 要在特定字段(例如URL)中进行搜索 ,请参阅SEARCH文档并充分利用*(通配符)和〜(模糊搜索)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM