Re: Solr numFound > 0 but doc list empty in Solr Cloud setup
I came across this posting with exactly the same symptoms in my solr cloud. Here is what finally repaired my system: I had an id with fieldType class="solr.TextField" I changed this to class="solr.StrField" Best regards Christian -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Solr numFound 0 but doc list empty in Solr Cloud setup
I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } }
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } }
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
Verified that all my fields are stored and marked as indexed. field name=bodytype=string indexed=true stored=true multiValued=true / -- http://localhost:/solr/collection1/query?q=body%3A%22from%22wt=jsonindent=trueshards=http://localhost:/solr/collection1start=1rows=10shards.info=true { responseHeader: { status: 0, QTime: 19, params: { shards: http://localhost:/solr/collection1;, indent: true, start: 1, q: body:from, shards.info: true, wt: json, rows: 10 } }, shards.info: { http://localhost:/solr/collection1: { numFound: 1717, maxScore: 0.5327856, shardAddress: http://localhost:/solr/collection1;, time: 12 } }, response: { numFound: 1707, start: 1, maxScore: 0.5327856, docs: [ ] } } On Friday, January 16, 2015 9:56 AM, Erick Erickson erickerick...@gmail.com wrote: Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } }
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
As I said earlier - single core set up works fine with same solrconfig.xml and schema.xml cd example java -Djetty.port= -Dsolr.data.dir=/index/path -jar start.jar I am running Solr-4.10. Do I need to change any other configuration for running in solr cloud mode ? On Friday, January 16, 2015 11:56 AM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: Verified that all my fields are stored and marked as indexed. field name=bodytype=string indexed=true stored=true multiValued=true / -- http://localhost:/solr/collection1/query?q=body%3A%22from%22wt=jsonindent=trueshards=http://localhost:/solr/collection1start=1rows=10shards.info=true { responseHeader: { status: 0, QTime: 19, params: { shards: http://localhost:/solr/collection1;, indent: true, start: 1, q: body:from, shards.info: true, wt: json, rows: 10 } }, shards.info: { http://localhost:/solr/collection1: { numFound: 1717, maxScore: 0.5327856, shardAddress: http://localhost:/solr/collection1;, time: 12 } }, response: { numFound: 1707, start: 1, maxScore: 0.5327856, docs: [ ] } } On Friday, January 16, 2015 9:56 AM, Erick Erickson erickerick...@gmail.com wrote: Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } }
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
One more point: In cloud mode: If I submit a request with fl=id, it returns doc list. But when I add any other field, I get an empty doc list. http://localhost:/solr/select?q=domain:ebaywt=jsonshards=http://localhost:/solr/fl=idrows=1 { responseHeader: { status: 0, QTime: 7, params: { fl: id, shards: http://localhost:/solr/;, q: domain:ebay, wt: json, rows: 1 } }, response: { numFound: 17, start: 0, maxScore: 3.8559604, docs: [ { id: d8406557-6cd8-46d9-9a5e-29844387afc4 } ] } } Note: all of above works in single core mode. On Friday, January 16, 2015 12:13 PM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: As I said earlier - single core set up works fine with same solrconfig.xml and schema.xml cd example java -Djetty.port= -Dsolr.data.dir=/index/path -jar start.jar I am running Solr-4.10. Do I need to change any other configuration for running in solr cloud mode ? On Friday, January 16, 2015 11:56 AM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: Verified that all my fields are stored and marked as indexed. field name=bodytype=string indexed=true stored=true multiValued=true / -- http://localhost:/solr/collection1/query?q=body%3A%22from%22wt=jsonindent=trueshards=http://localhost:/solr/collection1start=1rows=10shards.info=true { responseHeader: { status: 0, QTime: 19, params: { shards: http://localhost:/solr/collection1;, indent: true, start: 1, q: body:from, shards.info: true, wt: json, rows: 10 } }, shards.info: { http://localhost:/solr/collection1: { numFound: 1717, maxScore: 0.5327856, shardAddress: http://localhost:/solr/collection1;, time: 12 } }, response: { numFound: 1707, start: 1, maxScore: 0.5327856, docs: [ ] } } On Friday, January 16, 2015 9:56 AM, Erick Erickson erickerick...@gmail.com wrote: Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } }
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
Looks like a config issue to me more than anything else. Can you share your solrconfig? You will not be able to attach a file here but you could share it via pastebin or something similar. Also, why are you adding the shards=http://localhost:8983/solr/collection1; part to your request? You don't need to do that in most cases. On Fri, Jan 16, 2015 at 12:20 PM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: One more point: In cloud mode: If I submit a request with fl=id, it returns doc list. But when I add any other field, I get an empty doc list. http://localhost:/solr/select?q=domain:ebaywt=jsonshards=http://localhost:/solr/fl=idrows=1 { responseHeader: { status: 0, QTime: 7, params: { fl: id, shards: http://localhost:/solr/;, q: domain:ebay, wt: json, rows: 1 } }, response: { numFound: 17, start: 0, maxScore: 3.8559604, docs: [ { id: d8406557-6cd8-46d9-9a5e-29844387afc4 } ] } } Note: all of above works in single core mode. On Friday, January 16, 2015 12:13 PM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: As I said earlier - single core set up works fine with same solrconfig.xml and schema.xml cd example java -Djetty.port= -Dsolr.data.dir=/index/path -jar start.jar I am running Solr-4.10. Do I need to change any other configuration for running in solr cloud mode ? On Friday, January 16, 2015 11:56 AM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: Verified that all my fields are stored and marked as indexed. field name=bodytype=string indexed=true stored=true multiValued=true / -- http://localhost:/solr/collection1/query?q=body%3A%22from%22wt=jsonindent=trueshards=http://localhost:/solr/collection1start=1rows=10shards.info=true { responseHeader: { status: 0, QTime: 19, params: { shards: http://localhost:/solr/collection1;, indent: true, start: 1, q: body:from, shards.info: true, wt: json, rows: 10 } }, shards.info: { http://localhost:/solr/collection1: { numFound: 1717, maxScore: 0.5327856, shardAddress: http://localhost:/solr/collection1;, time: 12 } }, response: { numFound: 1707, start: 1, maxScore: 0.5327856, docs: [ ] } } On Friday, January 16, 2015 9:56 AM, Erick Erickson erickerick...@gmail.com wrote: Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } } -- Anshum Gupta http://about.me/anshumgupta
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
I followed all the steps listed here: http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I have not updated solrconfig.xml and it is same as what comes default with 4.10. The only thing I added extra was list of my fields in example/solr/collection1/conf/schema.xml @shards: If I query with out that param, it returns below error: http://localhost:/solr/collection1/select?q=*:* response lst name=responseHeader int name=status503/int int name=QTime3/int lst name=params str name=q*:*/str /lst /lst lst name=error str name=msgno servers hosting shard:/str int name=code503/int /lst /response On Friday, January 16, 2015 12:37 PM, Anshum Gupta ans...@anshumgupta.net wrote: Looks like a config issue to me more than anything else. Can you share your solrconfig? You will not be able to attach a file here but you could share it via pastebin or something similar. Also, why are you adding the shards=http://localhost:8983/solr/collection1; part to your request? You don't need to do that in most cases. On Fri, Jan 16, 2015 at 12:20 PM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: One more point: In cloud mode: If I submit a request with fl=id, it returns doc list. But when I add any other field, I get an empty doc list. http://localhost:/solr/select?q=domain:ebaywt=jsonshards=http://localhost:/solr/fl=idrows=1 { responseHeader: { status: 0, QTime: 7, params: { fl: id, shards: http://localhost:/solr/;, q: domain:ebay, wt: json, rows: 1 } }, response: { numFound: 17, start: 0, maxScore: 3.8559604, docs: [ { id: d8406557-6cd8-46d9-9a5e-29844387afc4 } ] } } Note: all of above works in single core mode. On Friday, January 16, 2015 12:13 PM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: As I said earlier - single core set up works fine with same solrconfig.xml and schema.xml cd example java -Djetty.port= -Dsolr.data.dir=/index/path -jar start.jar I am running Solr-4.10. Do I need to change any other configuration for running in solr cloud mode ? On Friday, January 16, 2015 11:56 AM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: Verified that all my fields are stored and marked as indexed. field name=bodytype=string indexed=true stored=true multiValued=true / -- http://localhost:/solr/collection1/query?q=body%3A%22from%22wt=jsonindent=trueshards=http://localhost:/solr/collection1start=1rows=10shards.info=true { responseHeader: { status: 0, QTime: 19, params: { shards: http://localhost:/solr/collection1;, indent: true, start: 1, q: body:from, shards.info: true, wt: json, rows: 10 } }, shards.info: { http://localhost:/solr/collection1: { numFound: 1717, maxScore: 0.5327856, shardAddress: http://localhost:/solr/collection1;, time: 12 } }, response: { numFound: 1707, start: 1, maxScore: 0.5327856, docs: [ ] } } On Friday, January 16, 2015 9:56 AM, Erick Erickson erickerick...@gmail.com wrote: Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } } -- Anshum Gupta http://about.me/anshumgupta
Re: Solr numFound 0 but doc list empty in Solr Cloud setup
Anshuman, You are right about @shards param not required. One of my shard was down and hence when I added shards.tolerant=true, it worked without shards param. However document list is still empty. content of solrconfig.xml http://pastebin.com/CJxD22t1 On Friday, January 16, 2015 1:24 PM, Jaikit Savla jaikit.sa...@yahoo.com wrote: I followed all the steps listed here: http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I have not updated solrconfig.xml and it is same as what comes default with 4.10. The only thing I added extra was list of my fields in example/solr/collection1/conf/schema.xml @shards: If I query with out that param, it returns below error: http://localhost:/solr/collection1/select?q=*:* response lst name=responseHeader int name=status503/int int name=QTime3/int lst name=params str name=q*:*/str /lst /lst lst name=error str name=msgno servers hosting shard:/str int name=code503/int /lst /response On Friday, January 16, 2015 12:37 PM, Anshum Gupta ans...@anshumgupta.net wrote: Looks like a config issue to me more than anything else. Can you share your solrconfig? You will not be able to attach a file here but you could share it via pastebin or something similar. Also, why are you adding the shards=http://localhost:8983/solr/collection1; part to your request? You don't need to do that in most cases. On Fri, Jan 16, 2015 at 12:20 PM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: One more point: In cloud mode: If I submit a request with fl=id, it returns doc list. But when I add any other field, I get an empty doc list. http://localhost:/solr/select?q=domain:ebaywt=jsonshards=http://localhost:/solr/fl=idrows=1 { responseHeader: { status: 0, QTime: 7, params: { fl: id, shards: http://localhost:/solr/;, q: domain:ebay, wt: json, rows: 1 } }, response: { numFound: 17, start: 0, maxScore: 3.8559604, docs: [ { id: d8406557-6cd8-46d9-9a5e-29844387afc4 } ] } } Note: all of above works in single core mode. On Friday, January 16, 2015 12:13 PM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: As I said earlier - single core set up works fine with same solrconfig.xml and schema.xml cd example java -Djetty.port= -Dsolr.data.dir=/index/path -jar start.jar I am running Solr-4.10. Do I need to change any other configuration for running in solr cloud mode ? On Friday, January 16, 2015 11:56 AM, Jaikit Savla jaikit.sa...@yahoo.com.INVALID wrote: Verified that all my fields are stored and marked as indexed. field name=bodytype=string indexed=true stored=true multiValued=true / -- http://localhost:/solr/collection1/query?q=body%3A%22from%22wt=jsonindent=trueshards=http://localhost:/solr/collection1start=1rows=10shards.info=true { responseHeader: { status: 0, QTime: 19, params: { shards: http://localhost:/solr/collection1;, indent: true, start: 1, q: body:from, shards.info: true, wt: json, rows: 10 } }, shards.info: { http://localhost:/solr/collection1: { numFound: 1717, maxScore: 0.5327856, shardAddress: http://localhost:/solr/collection1;, time: 12 } }, response: { numFound: 1707, start: 1, maxScore: 0.5327856, docs: [ ] } } On Friday, January 16, 2015 9:56 AM, Erick Erickson erickerick...@gmail.com wrote: Any chance that you've defined rows=0 in your handler? Or is it possible that you have not set stored=true for any of your fields? Best, Erick On Fri, Jan 16, 2015 at 9:46 AM, Jaikit Savla jaikit.sa...@yahoo.com.invalid wrote: I am using below tutorial for Solr Cloud setup with 2 shards http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster I am able to get the default set up working. However, I have a requirement where my index is not in default location (data/index) and hence when I start jvm for each shard I run with -Dsolr.data.dir=custom index path . Now when I query I get results with numFound 0 but doc list is always empty. I verified that my index does have fields stored and indexed. Anyone else faced similar issue or have an idea on what I am missing ? Verified that by loading single core. Appreciate any help. request: http://localhost:/solr/collection1/select?q=body%3A%22to%22wt=jsonindent=trueshards=http://localhost:/solr/collection1 response: { responseHeader: { status: 0, QTime: 18, params: { shards: http://localhost:/solr/collection1;, indent: true, q: body:\to\, _: 1421390858638, wt: json } }, response: { numFound: 2564, start: 0, maxScore: 0.4523638, docs: [] } } -- Anshum Gupta http://about.me/anshumgupta