Also, OR is the default, so you can improve on it with: &fq=institute_name:("xyz" "sfsda" "sdfsaf")
Upayavira On Wed, Feb 6, 2013, at 08:17 PM, Shawn Heisey wrote: > On 2/6/2013 12:41 PM, anurag.jain wrote: > > in my query there are many OR's now after 79 or 80 ORS it gives error that > > url is very large. > > > > > > http://xvz/solr/select?q=*:*&fq=institute_name:"xyz" OR > > institute_name:"sfsda" OR institute_name:"sdfsaf" ...... > > > > > > i found a solution that we can give query through POST. but i don't know how > > ? can you please tell me how to do this. please reply. :( urgent > > If you used this query format instead, your URL would be smaller. Note > that the quotes are only required if you want to do an explicit phrase > query: > > &fq=institute_name("xyz" OR "sfsda" OR "sdfsaf") > > You can increase the URL length (HTTP header buffer) that your servlet > container will allow. Exactly how to do this would depend on which > container you're using to deploy Solr. > > Going to POST is a better option. The way to do that would depend on > what program or Solr development API you're using to access Solr. If > you're using SolrJ in a Java program, it should do that automatically. > > Thanks, > Shawn >