简体   繁体   中英

Is it possible to do partial index on Apache Solr 4?

We have around 5 projects which use one API for Products(Categories, Brands are also stored there).

But each project has it's own range of products, for example project1 can have ipod 4, iphone 5 as products list, project2 {ipod 4, iphone 4, macbook, das keyboard}.

Now idea is whenever someone searches for "ip" in project1 web-site it should return {'ipod 4', 'iphone 5'}, if search query is 'macbook' empty set will be returned.

But in case if someone will be searching for "macbook" in project2 website it will return {'macbook'}

So question is, how to do that using Apache Solr 4? Any ideas would be much more appreciated

Thanks beforehand

Your problem can be solved by having a multiple cores for each of your project data. You can have reference for configuring multi core check this Multi cor Config Solr

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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