Or if it's inconvenient to do in the code at query time: get the substring
at index time, store it as a separate field, and retrieve that value at
query time.



Op do 15 sep. 2022 om 16:23 schreef Dave <hastings.recurs...@gmail.com>:

> 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