Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query parser confused with first author searches and year ranges #196

Open
aaccomazzi opened this issue Dec 28, 2022 · 2 comments
Open

Query parser confused with first author searches and year ranges #196

aaccomazzi opened this issue Dec 28, 2022 · 2 comments

Comments

@aaccomazzi
Copy link
Member

These queries fail:

1995-1996
^navarro,j  year:1995-1996

With the error message: COULD_NOT_PARSE_NUMBER: Could not parse text "1995" using org.apache.solr.search.AqpAdsabsQParser.MaxNumberFormat
Not sure whether the first range query is expected to work as an unfielded search.

But these all work (as they should):

year:1995-1996
^navarro year:1995-1996
"^navarro,j" year:1995-1996
@JCRPaquin
Copy link
Contributor

@aaccomazzi The author name part of this doesn't seem too related to the unfielded year-range issue. Is there a reason you grouped them here?

@aaccomazzi
Copy link
Member Author

Hmmm... I think I noticed the problem when I ran the author+year query (^navarro,j year:1995-1996) and then added the other cases after experimenting. But you're right, I believe there are two issues at play here, one is the parsing of unfielded year-ranges, the other is the unfielded parsing of first author names which is probably already covered in some other issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants