[ https://issues.apache.org/jira/browse/SOLR-5528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13839717#comment-13839717 ]
Erick Erickson commented on SOLR-5528: -------------------------------------- bq: Remember: this isnt spellcheck. so "bloating the index" doesnt really exist. Its FSTs. Well, you have to copy all the individual fields into an extra field upon which you build the FST if you do the "copy all fields you want to contribute to suggestions into a common field and suggest on _that_" work-around for getting suggestions from multiple fields. About LUCENE-5350. Hmmm, interesting. I'm not entirely sure what the possibilities are there. On a _very_ quick glance it looks like complimentary but not the same cases. But I could very well be mistaken. None of this is new capability, it's all do-able by relying on the position of the returned sections of the suggest parts of the response to be in the same order as the components of the suggest request handler were defined in the present code. It's just about adding one more bit to the suggester response to make it easier to identify which component generated that section, that's all. I don't much like relying on position and the loose coupling between the order of elements in the component chain and the order of the suggest sections in the response. I guess that if we're willing to _guarantee_ that ordering in this and future releases, then the current capabilities will work robustly. > Change New Suggester Response and minor cleanups > ------------------------------------------------ > > Key: SOLR-5528 > URL: https://issues.apache.org/jira/browse/SOLR-5528 > Project: Solr > Issue Type: Improvement > Components: SearchComponents - other > Reporter: Areek Zillur > Fix For: 5.0, 4.7 > > Attachments: SOLR-5528.patch > > > It would be nice to have a simplified response format for the new Suggester > Component. > The proposed format is as follows: > XML: > {code} > <?xml version="1.0" encoding="UTF-8"?> > <response> > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">32</int> > </lst> > <str name="command">build</str> > <lst name="suggest"> > <lst name="ele"> > <int name="numFound">1</int> > <arr name="suggestions"> > <lst> > <str name="term">electronics and computer1</str> > <long name="weight">2199</long> > <str name="payload" /> > </lst> > </arr> > </lst> > </lst> > </response> > {code} > JSON: > {code} > { > "responseHeader": { > "status": 0, > "QTime": 30 > }, > "command": "build", > "suggest": { > "ele": { > "numFound": 1, > "suggestions": [ > { > "term": "electronics and computer1", > "weight": 2199, > "payload": "" > } > ] > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org