lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-2048) response testing with JSON
Date Mon, 16 Aug 2010 14:46:16 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898955#action_12898955
] 

Yonik Seeley commented on SOLR-2048:
------------------------------------

The test strings currently consist of path:expected_JSON  (the path is where to start in the
input to do comparisons with the expected JSON).

example:
{code}
    assertJQ(req("fq","filt",  "q","{!func}"+f2, "group","true", "group.field",f, "fl","id")
      ,"/responseHeader/status:0"                         // exact match
      ,"/responseHeader:{'_SKIP_':'QTime', 'status':0}"   // partial match by skipping some
elements
      ,"/responseHeader:{'_MATCH_':'status', 'status':0}" // partial match by only including
some elements
      ,"/grouped:{'foo_i':{ 'groups':[{'groupValue':1, 'matches':3," + ...
{code}

> response testing with JSON
> --------------------------
>
>                 Key: SOLR-2048
>                 URL: https://issues.apache.org/jira/browse/SOLR-2048
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>         Attachments: SOLR-2048.patch
>
>
> Use JSON to test for complete matches of complex hierarchies (rather than the element-by-element
approach we need to use with xpath).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message