floriansemm / SolrBundle

Solr-Integration into Symfony and Doctrine2
http://floriansemm.github.io/SolrBundle
MIT License
123 stars 72 forks source link

New master-dev error #142

Open hanzx opened 7 years ago

hanzx commented 7 years ago

Hi, you do some changes and solr not work;

old version query :

omitHeader=true wt=json json.nl=flat q=*:* start=0 rows=12 fl= sort=random_3225 ASC fq=sta:1

after composer update : there is automatic add * fq=id:product_ **

omitHeader=true wt=json json.nl=flat q=*:* start=0 rows=12 fl= sort=random_3225 ASC fq=sta:1 fq=id:product_*

floriansemm commented 7 years ago

You can remove the new id filter query and add the document-limitation as custom-query:

$query->setCustomQuery('id:product_*');
$query->removeFilterQuery('id');
muganda commented 7 years ago

I have tried your suggestion but the problem is still there.

floriansemm commented 7 years ago

does omitHeader=true wt=json json.nl=flat q=*:* start=0 rows=12 fl= sort=random_3225 ASC fq=sta:1 works for you?

floriansemm commented 7 years ago

@muganda ping