Comments (7)
Looks like the opt.NotUseGse
can't work properly while use storage.
load storage will call innerIndexDoc and send doc to segment chan.
from riot.
I will test update it, and welcome to optimization.
from riot.
All right, I'll try
from riot.
@vcaesar By the way, really pleasure to see the update of dep
from riot.
@vcaesar quite busy in past days, and our project fix the share with a temp solution, since the segmenter has a complex struct/interface and by your design I felt that you want keep the config simple.
I'm wondering using some design like what gRPC using in callOption
`dialOption` to inject the complex implement like below:
// NewServer creates a gRPC server which has no service registered and has not
// started to accept requests yet.
func NewServer(opt ...ServerOption) *Server {
//
}
What I Image the implement may look like:
type Optioner interface{
// not designed yet
}
func (engine *Engine) Init(options types.EngineOpts, otherOpts ... Optioner ){
}
opt := types.EngineOpts{
//...
}
seg := mySeg{} // implement a `Optioner` interface
sthComplexToo := sth{} // implement a `Optioner` interface, too, may be the self imp storager
this.riotEngine = new(riot.Engine)
riotEngine.Init(opt, seg, sthComplexToo)
What's your opinion? My first target is to stripping the segmenter and second is the storager.
from riot.
Thanks for your tips and contributions, but I have a better solution, please see the code #55 .
from riot.
@vcaesar Great ~
from riot.
Related Issues (20)
- Score
- Is it possible to search short sentences with long sentences
- Is is required to call indexDoc before search HOT 1
- What are Attri and Fields for?
- cost too many memory HOT 1
- Is it required to index all docs before search? HOT 2
- 有人说你这个是抄袭的,你怎么看?
- Q: why it is callled riot HOT 2
- About 文档的关键词(tokens) HOT 1
- Q: Incremental persistent storage
- grpc has been updated . But riot still uses Deprecated mesthods. Why not upgrade?
- riot 这个项目 grpc etcd 配置有没有完整的例子 做事情能不能别三天打鱼两天晒网 HOT 1
- 大家在提交代码时 都那么随意使用 很少有人维护的安装包 如果作者使用只有自己维护的包,能不能跟上更新? go-vgo相关包 HOT 2
- File search example please HOT 3
- pressure test. after 10000 times request, out of memory. HOT 1
- run store example thow errors (invalid argument) HOT 1
- TokenLoc out of length HOT 1
- Digital fuzzy query does not work HOT 1
- how can search office file
- 都不更新了?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riot.