"I have for example jobs form country A, jobs from country B and so on until 100 countries. I need to have for each country an separate index, because if someone search for jobs in country A I need to query only the index for country A. How to solve this problem?"
Ah! Will the text be in different languages? You probably want a separate index for each language base. Solr/Lucene has very good facilities for text in different languages. In general, this will be a learning experience. After you do the deployment, you will discover problems in search design, deployment design, scaling architecture, and operations tools. You should plan to do two Solr deployments. On Wed, Aug 15, 2012 at 8:27 AM, Walter Underwood <wun...@wunderwood.org> wrote: > These do require some Sphinx knowledge. I could answer them on StackOverflow > because I converted Chegg from Sphinx to Solr this year. > > As I said there, read about Solr cores. They are independent search > configurations and indexes within one Solr server: > http://wiki.apache.org/solr/CoreAdmin > > For your jobs example, I would use filter queries to limit the search to a > single country. Filter them to country:us or country:de or country:fr and you > will only get result from that country. > > Solr does not use the term "rotate" for indexes. You can delete with a query, > so you could delete all the jobs for one country, reindex those, then commit. > > Separate cores are best when you have different kinds of data. At Chegg, we > search books and college courses. Those are in different cores and have very > different schemas. > > wunder > > On Aug 15, 2012, at 5:11 AM, nnikolay wrote: > >> HI iorixxx, thanks for the reply. >> >> Well you don't need sphinx knowledge to answer my questions. >> >> I have write you what I want: >> >> 1. I need to have 2 seprate indexes. In Stackoverlfow I became the answer I >> need to start 2 cores for example. How many cores can I run for solr? I have >> for example over 100 different indexes, that they should seeing as separate >> data. This indexes should be reindexed in different times and the data of >> them should not mixed with each other. >> >> You need to understand follow situation: >> >> I have for example jobs form country A, jobs from country B and so on until >> 100 countries. I need to have for each country an separate index, because if >> someone search for jobs in country A I need to query only the index for >> country A. How to solve this problem? >> >> How to do this? Is there are good tutorial? In the wiki of solr, it is very >> bad explained. >> >> 2. When I become new data for example: Should I rotate the whole index >> again, or can I include the new rows and delete the old rows. What is your >> suggestion? >> >> Thanks >> Nik >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Switch-from-Sphinx-to-Solr-some-basics-please-tp4001234p4001379.html >> Sent from the Solr - User mailing list archive at Nabble.com. > > -- > Walter Underwood > wun...@wunderwood.org > > > -- Lance Norskog goks...@gmail.com