what about this query? try to see if you get suggestions here:
/solr/collection1/select?q=*%3Abecaus&wt=json&indent=true&spellcheck=true
On Wed, Sep 18, 2013 at 4:02 AM, jazzy wrote:
> I'm trying to get the Solr SpellCheckComponent working but am running into
> some issues. When I run
> .../solr/collection1/select?q=%3A&wt=json&indent=true
>
> These results are returned
>
> {
> "responseHeader": {
> "status": 0,
> "QTime": 1,
> "params": {
> "indent": "true",
> "q": "*:*",
> "_": "1379457032534",
> "wt": "json"
> }
> },
> "response": {
> "numFound": 2,
> "start": 0,
> "docs": [
> {
> "enterprise_name": "because",
> "name": "doc1",
> "enterprise_id": "100",
> "_version_": 1446463888248799200
> },
> {
> "enterprise_name": "what",
> "name": "RZTEST",
> "enterprise_id": "102",
> "_version_": 1446464432735518700
> }
> ]
> }
> }
> Those are the values that I have indexed. Now when I want to query for
> spelling I get some weird results.
>
> When I run
>
> .../solr/collection1/select?q=name%3Arxtest&wt=json&indent=true&spellcheck=true
>
> The results are accurate and I get
>
> {
> "responseHeader":{
> "status":0,
> "QTime":4,
> "params":{
> "spellcheck":"true",
> "indent":"true",
> "q":"name:rxtest",
> "wt":"json"}},
> "response":{"numFound":0,"start":0,"docs":[]
> },
> "spellcheck":{
> "suggestions":[
> "rxtest",{
> "numFound":1,
> "startOffset":5,
> "endOffset":11,
> "suggestion":["rztest"]}]}}
> Anytime I run a query without the name values I get 0 results back.
>
> /solr/collection1/select?q=enterprise_name%3Abecaus&wt=json&indent=true&spellcheck=true
>
> {
> "responseHeader":{
> "status":0,
> "QTime":5,
> "params":{
> "spellcheck":"true",
> "indent":"true",
> "q":"enterprise_name:becaus",
> "wt":"json"}},
> "response":{"numFound":0,"start":0,"docs":[]
> },
> "spellcheck":{
> "suggestions":[]}}
> My guess is that there is something wrong in my scheme but everything looks
> fine.
>
> Schema.xml
>
>
> required="true" />
> stored="true"/>
>
> multiValued="true" />
>
> stored="true"/>
> stored="true" multiValued="true"/>
> stored="true" multiValued="true"/>
>
>
>
>
>
> positionIncrementGap="100">
>
>
> words="stopwords.txt" />
>
>
>
>
>
> words="stopwords.txt" />
> ignoreCase="true" expand="true"/>
>
>
>
> solrconfig.xml
>
>
>
>
>explicit
>10
>text
>
>default
>
> wordbreak
>
> false
>
> false
>
> 5
>
>
>
> spellcheck
>
>
>
>
>
>
>
> default
>
> solr.IndexBasedSpellChecker
>
> name
>
> ./spellchecker
>
> 0.5
>
> .0001
> true
>
>
>
> wordbreak
> solr.WordBreakSolrSpellChecker
> name
> true
> true
> 3
> true
>
>
>
> text_general
>
>
> Any help would be appreciated.
> Thanks!
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-SpellCheckComponent-only-shows-results-with-certain-fields-tp4090727.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
Regards,
Raheel Hasan