[jira] [Updated] (SOLR-2166) termvector component has strange syntax

2012-04-22 Thread Peter Wolanin (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Wolanin updated SOLR-2166:


Attachment: SOLR-2166.diff

 termvector component has strange syntax
 ---

 Key: SOLR-2166
 URL: https://issues.apache.org/jira/browse/SOLR-2166
 Project: Solr
  Issue Type: Improvement
Reporter: Yonik Seeley
 Attachments: SOLR-2166.diff


 The termvector  response format could really be improved.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] [Updated] (SOLR-2166) termvector component has strange syntax

2012-04-22 Thread Peter Wolanin (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Wolanin updated SOLR-2166:


Attachment: SOLR-2166.diff

Here's a patch rolled against Solr 3.5 which I think makes the format into 
something more compact and that doesn't fail on JSON parsing.

BEFORE:
{code}
  termVectors:{
doc-49:{
  uniqueKey:evfbih/node/89,
  content:{
abba:{
  positions:{
position:49}},
abigo:{
  positions:{
position:5,
position:72}},
{code}


AFTER:

{code}
  termVectors:{
doc-49:{
  uniqueKey:evfbih/node/89,
  content:{
abba:{
  positions:[49]},
abigo:{
  positions:[5,
72]},
{code}

 termvector component has strange syntax
 ---

 Key: SOLR-2166
 URL: https://issues.apache.org/jira/browse/SOLR-2166
 Project: Solr
  Issue Type: Improvement
Reporter: Yonik Seeley
 Attachments: SOLR-2166.diff


 The termvector  response format could really be improved.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] [Updated] (SOLR-2166) termvector component has strange syntax

2012-04-22 Thread Peter Wolanin (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Wolanin updated SOLR-2166:


Attachment: (was: SOLR-2166.diff)

 termvector component has strange syntax
 ---

 Key: SOLR-2166
 URL: https://issues.apache.org/jira/browse/SOLR-2166
 Project: Solr
  Issue Type: Improvement
Reporter: Yonik Seeley
 Attachments: SOLR-2166.diff


 The termvector  response format could really be improved.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] [Updated] (SOLR-2166) termvector component has strange syntax

2012-04-22 Thread Peter Wolanin (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Wolanin updated SOLR-2166:


Attachment: workaround-managled-SOLR-2166.diff

As a work-around one could enabled access to the unused(?) 
writeNamedListAsMapMangled() function which prevents writing duplicate keys.  
For this work-around patch, use:

json.nl=mapm instead of json.nl=map

to see the behavior AFTER:
{code}
  termVectors:{
doc-49:{
  uniqueKey:evfbih/node/89,
  content:{
abba:{
  positions:{
position:49}},
abigo:{
  positions:{
position:5,
position_1:72}},
{code}

 termvector component has strange syntax
 ---

 Key: SOLR-2166
 URL: https://issues.apache.org/jira/browse/SOLR-2166
 Project: Solr
  Issue Type: Improvement
Reporter: Yonik Seeley
 Attachments: SOLR-2166.diff, workaround-managled-SOLR-2166.diff


 The termvector  response format could really be improved.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



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