Solr and Lucene return different search result

Hello,

My project is switching from Lucene to Solr.
With the same query, same data in the database, I got the different result when searching with Lucene and Solr.

I search from Overview, so I can confirm the query we send to DS is the same.

With Solr, I got an empty result with query (I get from debug mode):
MyField.CompanyCalc_KEY:(MGM Consulting Partners GmbH OR mgm consulting partners austria gmbh)
MyField.Subsidiary_KEY:(mst OR amstetten OR bam OR bln OR cgn OR drs OR hh OR lej OR muc_nord OR nbg OR muc-sued OR lhut OR ger)

With Lucene, it returns one document with query:
MyField.CompanyCalc:(MGM Consulting Partners GmbH OR mgm consulting partners austria gmbh)
MyField.Subsidiary:(mst OR amstetten OR bam OR bln OR cgn OR drs OR hh OR lej OR muc_nord OR nbg OR muc-sued OR lhut OR ger)

The configuration I have is:

For SOlr

mgmtp.a12.dataservices.search.service=solrclient
mgmtp.a12.dataservices.search.solr.urls=http://localhost:8984/solr
mgmtp.a12.dataservices.cdd.solr.urls=http://localhost:8984/solr
mgmtp.a12.dataservices.search.index.initialization.mode=rebuild_index

mgmtp.a12.dataservices.search.analysis.fullText.ngrams.enabled=true
mgmtp.a12.dataservices.cdd.solr.embedded.enabled=false
mgmtp.a12.dataservices.search.solr.embedded.enabled=false

For Lucene

mgmtp.a12.dataservices.search.solr.urls=http://localhost:8984/solr
mgmtp.a12.dataservices.cdd.solr.urls=http://localhost:8984/solr
mgmtp.a12.dataservices.search.index.initialization.mode=rebuild_index

mgmtp.a12.dataservices.search.analysis.fullText.ngrams.enabled=true
mgmtp.a12.dataservices.cdd.solr.embedded.enabled=false
mgmtp.a12.dataservices.search.solr.embedded.enabled=false

I do the search from Overview, do you have any idea how to solve it?

Hello,

I believe you’re working with EnumerationType. There was a difference in Solr & Lucene’s behavior when the enumeration has the space character (" ").

We had encountered this on Project Information on ProjectStatus, e.g. In preparation & In production
We have to model it into something like In-preparation or In_preparation and still get it to display correctly with the label.

Please try it and let us know. This is the DS-associated ticket A12S-3551

Cheers

Thank you, the issue is gone after stop using space in enumeration value.