You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2010/08/16 16:36:16 UTC
[jira] Created: (SOLR-2048) response testing with JSON
response testing with JSON
--------------------------
Key: SOLR-2048
URL: https://issues.apache.org/jira/browse/SOLR-2048
Project: Solr
Issue Type: Bug
Reporter: Yonik Seeley
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
[jira] Updated: (SOLR-2048) response testing with JSON
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley updated SOLR-2048:
-------------------------------
Attachment: SOLR-2048.patch
Here's a draft patch that I'm starting to use to test field collapsing.
> 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
[jira] Commented: (SOLR-2048) response testing with JSON
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (SOLR-2048) response testing with JSON
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-2048.
--------------------------------
Fix Version/s: 3.1
4.0
Resolution: Fixed
> response testing with JSON
> --------------------------
>
> Key: SOLR-2048
> URL: https://issues.apache.org/jira/browse/SOLR-2048
> Project: Solr
> Issue Type: Bug
> Reporter: Yonik Seeley
> Fix For: 3.1, 4.0
>
> 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