Bug 41203

Summary: searching with barcode in cataloging page returns no results for some items even though they exist
Product: Koha Reporter: Dilraj Singh <dilraj082>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: anneli.osterman, m.de.rooy
Version: 24.11   
Hardware: PC   
OS: Linux   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Barcode 6040 returns correct value in item search page but not in advanced search and cataloging page

Description Dilraj Singh 2025-11-06 10:10:07 UTC
Created attachment 189152 [details]
Barcode 6040 returns correct value in item search page but not in advanced search and cataloging page

When searching for items using their barcode in the Cataloging page and Advanced Search, some items return no results even though they clearly exist in the database and can be found using other search parameters (e.g., title, author, or item ID).

Those same barcodes work correctly in the Checkout and Item Search pages.
Comment 1 Dilraj Singh 2025-11-06 10:17:09 UTC
(In reply to Dilraj Singh from comment #0)
> Created attachment 189152 [details]
> Barcode 6040 returns correct value in item search page but not in advanced
> search and cataloging page
> 
> When searching for items using their barcode in the Cataloging page and
> Advanced Search, some items return no results even though they clearly exist
> in the database and can be found using other search parameters (e.g., title,
> author, or item ID).
> 
> Those same barcodes work correctly in the Checkout and Item Search pages.

There are multiple such instances where the barcode search returns no results in cataloging and advanced search
Comment 2 Anneli Österman 2025-12-01 09:56:26 UTC
Are you using Zebra or Elasticsearch as a search engine? In Elasticsearch there is an index called barcode and field 952$p should be mapped to it. If it is not, the search will not find the barcode.

You can check your mappings by going to Administration -> Search engine configuration (Elasticsearch)