You would need to do that in the code end of reading the document from the 
index. Search indexes assume you want the complete value they don’t give 
substrings, 

> On Sep 15, 2022, at 9:59 AM, Shankar R <iamrav...@gmail.com> wrote:
> 
> Hi All,
> My solr field is defined like this
> 
> <field name="bkgs_as_of" type="string" indexed="true" stored="true" required
> ="true" multiValued="false" />
> 
> It contains avalue in this format
> 
> "bkgs_as_of":"2022-09-15 06:31:52 AM",
> 
> When reading the value I just want to read it as 2022-09-15 and not
> the time value. Want to understand how can i do it in solr query.
> 
> 
> Regards
> 
> Ravi

Reply via email to