adsabs / montysolr

Solr for Astrophysics Data System
https://ui.adsabs.harvard.edu
Other
52 stars 19 forks source link

Extra search results returned #210

Open aaccomazzi opened 8 months ago

aaccomazzi commented 8 months ago

The query: netpune -full:exoplanet atmospheres returns records with "exoplanet" in them.

https://ui.adsabs.harvard.edu/search/q=netpune%20-full%3Aexoplanet%20atmospheres&sort=score%20desc%2C%20bibcode%20desc&p_=0

aaccomazzi commented 6 months ago

Related to this, the above search returns different results from this one: netpune -full:"exoplanet" atmospheres. Whaaat? Is this something related to the fact that full is a virtual field?

aaccomazzi commented 6 months ago

One more data point: Kelly just pointed out that in the query netpune -full:exoplanet atmospheres the - sign is simply ignored, i.e. you get the same results as netpune full:exoplanet atmospheres

JCRPaquin commented 6 months ago

IIRC from a quick session with @kelockhart we found that the order of terms matters as well. I'll tackle this after the upgrade to Antlr 4-- it's highly likely that the issue is in the query parser, which is currently hard(er) to debug.