You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/06/12 00:11:02 UTC
[jira] [Commented] (SOLR-5528) Change New Suggester Response and
minor cleanups
[ https://issues.apache.org/jira/browse/SOLR-5528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028475#comment-14028475 ]
David Smiley commented on SOLR-5528:
------------------------------------
I noticed this Suggester isn't documented in the Ref Guide. Also, are there any use-cases addressed by the older Suggester approach that uses the Spellcheck component?
> 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: 4.7, 5.0
>
> 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.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org