What's the most efficient way to check if there are any matches for a query?

2020-12-05 Thread Colvin Cowie
Hello, I was just wondering. If I don't care about the number of matches for a query, let alone what the matches are, just that there is *at least 1* match for a query, what's the most efficient way to execute that query (on the /select handler)? (Using Solr 8.7) As a general approach for a query

Re: What's the most efficient way to check if there are any matches for a query?

2020-12-05 Thread Erick Erickson
Have you looked at the Term Query Parser (_not_ the TermS Query Parser) or Raw Query Parser? https://lucene.apache.org/solr/guide/8_4/other-parsers.html NOTE: these perform _no_ analysis, so you have to give them the exact term... These are pretty low level, and if they’re “fast enough” you won

Migrate Legacy Solr Cores to SolrCloud

2020-12-05 Thread Jay Mandal
Hello All, Please can some one from the Solr Lucene Community Provide me the Steps on how to migrate an existing Solr legacy Core, data and conf(manage schema,solrconfig.xml files to SolrCloud configuration with collections and shards and where to copy the existing files to reuse the data in the

Re: Migrate Legacy Solr Cores to SolrCloud

2020-12-05 Thread Erick Erickson
First thing I’d do is run one of the examples to insure you have Zookeeper set up etc. You can create a collection that uses the default configset. Once that’s done, start with ‘SOLR_HOME/solr/bin/solr zk upconfig’. There’s extensive help if you just type “bin/solr zk -help”. You give it the pat