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

Isabelle Giguere edited comment on SOLR-14886 at 5/9/23 4:46 PM:
-----------------------------------------------------------------

To reproduce on Solr 9 (now that SOLR-8921 is fixed)

Make sure to have a schema with a TrieDate field type, and a multi-valued field 
(can be dynamic) of this type:

<dynamicField name="*_dts" type="date" indexed="true" stored="true" 
multiValued="true" />

<fieldType name="date" class="solr.TrieDateField" precisionStep="0" 
positionIncrementGap="0"/>

Index a couple of documents with dates to fill the field (don't forget any 
mandatory fields):
{noformat}
curl http://<host>:8983/solr/<your-collection>/update -H "Content-Type: 
text/xml" --data-binary "<add><doc><field 
name=\"doc_timestamp_dts\">2023-05-09T12:34:56Z</field></doc></add>"
{noformat}

Query with sorting on the _dts field :
{noformat}
http://<host>:8983/solr/<your-collection>/select?indent=true&q=*%3A*&sort=doc_timestamp_dts%20asc&wt=json
{noformat}





was (Author: igiguere):
To reproduce on Solr 9 (now that SOLR-8921 is fixed)

Make sure to have a schema with a TrieDate field type, and a multi-valued field 
(can be dynamic) of this type:

<dynamicField name="*_dts" type="date" indexed="true" stored="true" 
multiValued="true" />

<fieldType name="date" class="solr.TrieDateField" precisionStep="0" 
positionIncrementGap="0"/>

Index a couple of documents with dates to fill the field (don't forget any 
mandatory fields):
{noformat}
curl http://<host>:8983/solr/<your-collection>/update -H "Content-Type: 
text/xml" --data-binary "<add><doc><field 
name=\"doc_timestamp_dts\">2023-05-09T12:34:56Z</field></doc></add>"
{noformat}

Query with sorting on the _dts field :
http://<host>:8983/solr/<your-collection>/select?indent=true&q=*%3A*&sort=doc_timestamp_dts%20asc&wt=json




> Suppress stack trace in Query response.
> ---------------------------------------
>
>                 Key: SOLR-14886
>                 URL: https://issues.apache.org/jira/browse/SOLR-14886
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 8.6.2
>            Reporter: Vrinda Davda
>            Priority: Minor
>         Attachments: SOLR-14886.patch, SOLR-14886.patch
>
>
> Currently there is no way to suppress the stack trace in solr response when 
> it throws an exception, like when a client sends a badly formed query string, 
> or exception with status 500 It sends full stack trace in the response. 
> I would propose a configuration for error messages so that the stack trace is 
> not visible to avoid any sensitive information in the stack trace.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to