Hi Shawn, Thanks for the reply. It works.
Regards, Edwin On 14 April 2016 at 01:40, Shawn Heisey <apa...@elyograg.org> wrote: > On 4/13/2016 9:25 AM, Zheng Lin Edwin Yeo wrote: > > Would like to find out, is there any way to do a multiple value query of > a > > field that is of type String, besides using the OR parameters? > > > > Currently, I am using the OR parameters like > > http://localhost:8983/solr/collection1/highlight?q=id:collection1_0001 > OR > > id:collection1_0002 > > > > But this will get longer and longer if I were to have many records to > > retrieve based on their ID. The fieldType is string, so it is not > possible > > to do things like sorting, more than or less than. > > > > I'm using Solr 5.4.0 > > The terms query parser was added in 4.10, and would do what you need: > > > https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-TermsQueryParser > > Thanks, > Shawn > >