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

meaningful search #12296

Open
2 tasks done
ilippert opened this issue Dec 16, 2024 · 3 comments
Open
2 tasks done

meaningful search #12296

ilippert opened this issue Dec 16, 2024 · 3 comments
Labels
Milestone

Comments

@ilippert
Copy link
Contributor

JabRef version

Other (please describe below)

Operating system

GNU / Linux

Details on version and operating system

JabRef 6.0--2024-12-11--38576bb Linux 6.11.11-300.fc41.x86_64 amd64 Java 23.0.1 JavaFX 23.0.1+4

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Given a library with several 2012 entries, in which the date is configured in various ways, e.g. as date, Date, year.
  2. Search your library for Date=2012
  3. Search your library for date=2012
  4. Search your library for year=2012

will all produce different hits.

Sorry, the new search engine makes me typically frustrated.

Appendix

No response

@koppor koppor added the search label Dec 16, 2024
@koppor koppor added this to the 6.0-alpha milestone Dec 16, 2024
@koppor
Copy link
Member

koppor commented Dec 16, 2024

Sorry, the new search engine makes me typically frustrated.

Which means in 5.x, it used to work?

@Siedlerchr
Copy link
Member

The key problem seems to be that year/date alias fields are not resolved/handled

I tested with 3 entries and the fields.

  1. Year 2012
  2. date 2012
  3. Date 2012

this is also visible in the SQL query

DEBUG: Executing search query: WITH
cte0 AS (
    SELECT main_table.entryid
    FROM bib_fields."c95sdfua42ja" AS main_table
    WHERE (
        (main_table.field_name = 'year') AND ((main_table.field_value_literal ILIKE ('%2012%')) OR (main_table.field_value_transformed ILIKE ('%2012%')))
    )
)
@Article{,
  author = {asdfasd},
  year   = {2012},
}

@Article{2012,
  author       = {First Author2},
  date         = {2012},
  journaltitle = {asdf},
}

@Article{Author12012,
  author       = {First Author1},
  date         = {2012},
  journaltitle = {asdf},
}

@github-project-automation github-project-automation bot moved this to Normal priority in Prioritization Dec 17, 2024
@Siedlerchr Siedlerchr moved this from Normal priority to High priority in Prioritization Dec 17, 2024
@ilippert
Copy link
Contributor Author

ilippert commented Dec 19, 2024

Which means in 5.x, it used to work?

JabRef 5.14--2024-06-03--109600b
Linux 6.11.10-300.fc41.x86_64 amd64
Java 21.0.2
JavaFX 22.0.1+7

search here works still wonderfully :)

Oliver, I guess here I can suggest to split the issue: the date bug issue vs my repeated frustrations with the "new search". If of any use for the latter, I am happy to create a new issue on the larger frustration and try to generate a screencast to illustrate, walk you through, my "frustrations", might help to turns this into something more specific and then a productive conversation ;) I apologise for the outburst with the notion of frustration, which you and the other developers do not deserve!

@koppor koppor modified the milestones: 6.0-alpha, 6.0-beta Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: High priority
Development

No branches or pull requests

3 participants