C
C#β€’4mo ago
Ajetekrasniqi

API for searching

Hello, I'am doing a application for selling product online. And you know, the search bar, I want to make them functional, to create an API my frontend can use to search for products with barcode, image, name etc
27 Replies
Pobiega
Pobiegaβ€’4mo ago
Whats stopping you? What have you tried? Where are you stuck?
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
I want suggestions where can I find that's api
Pobiega
Pobiegaβ€’4mo ago
??? you have to make that api
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
I don't know how to make them, soo...
Pobiega
Pobiegaβ€’4mo ago
well, start simple make an API endpoint that takes a string in and returns a list of results out limit it to only accepting names for now then add barcodes, if you have that data
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Soo i need to create data for barcodes
Pobiega
Pobiegaβ€’4mo ago
well, duh? if your database doesnt contain barcode information, how else would you search for it?
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
What about for images?
Pobiega
Pobiegaβ€’4mo ago
What about images?
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
To search the product with images
Pobiega
Pobiegaβ€’4mo ago
... what like, google reverse image search?
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Yep
Pobiega
Pobiegaβ€’4mo ago
Good luck
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Like that Hahhaha, thank you
Pobiega
Pobiegaβ€’4mo ago
I can almost guarantee that you can safely ignore that feature. And if you must have it, it involves some very complicated topics - you'll need a way to "compare" two images and calculate a "similarity" rating, but you also likely need some AI tech to find the "important object" in the image etc
Pobiega
Pobiegaβ€’4mo ago
No description
Pobiega
Pobiegaβ€’4mo ago
this image is very relevant here
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Ohh, maybe is right to ignore that future Feature
Pobiega
Pobiegaβ€’4mo ago
the other two make more sense and are easy to implement, given you have the data
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Yep, sure. Thank you Pobiega I know now what to do, I didn't know where to start
Pobiega
Pobiegaβ€’4mo ago
again, with caveats for how fancy you want it. a name search can be as easy as a LIKE %value% but you might want to compensate for typos, or wrong word order etc at that point you might need a search indexer, the complexity again skyrockets πŸ™‚
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Other complexity?πŸ˜…
Pobiega
Pobiegaβ€’4mo ago
?
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Are there other complexities?
Pobiega
Pobiegaβ€’4mo ago
Of course. But listing them is unfeasible it all depends on what your requirements are and what features you want and what solutions you can use depends on your developer skills, how much this can cost, how much time this can take, etc Is it realistic to have a search indexer for a webshop? If you are a tiny tiny seller with single-digit customers per day, no. If you are selling thousands of products per day? yes.
Ajetekrasniqi
Ajetekrasniqiβ€’4mo ago
Well, with others developer in my company, we think to make for thousands products Soo, ofc is not easy But, I want to trying,to prove how far can I go I will trying and for this, Thank youuu Pobiega, a looot
SCShocked from Human Resources
:SCshocked:
Want results from more Discord servers?
Add your server
More Posts
how to search .txt file with textboxes and dropdownlists and print in a table or label vs webformsIm trying to search data from a .txt file with textboxes and dropdownlists, then print the item i secant set enhanced mouse precisionOk i still don’t have the mouse thing working. I’m trying to set the enhanced mouse position option Create JSON objects from System.Text.JsonFor a while now I've been trying to get away from dependencies that I don't need anymore, including How to change the button output. Instead of questions it should show some more buttons.``` using System; using System.Linq; using NativeUiLib; //This ads the GUI contols. Minor abstractio.NET 8 error when using ASP.NET AspNetCore.Reporting.LocalReport`var result = localReport.Execute(AspNetCore.Reporting.RenderType.ExcelOpenXml, 1, param, "");` Errcan we send extra data in .net8 identity endpointsi need to send some extra data add the time of register. this register end point only allow email anHelp with Switching Views using MVVMhttps://github.com/MasonOderSo/MVVMtesting I have no idea why this is not working it is working in Help me with my concurrency experimentsCorrect me if I'm wrong. Based on my understanding, a CPU with 1 core running 1 thread has the same Create Migration always failSo I wanted to create a SQL Server database table based on your C# model. I have typed down `dotnetSynchronous Chat ProgramI'm doing this assignment that's due tomorrow and i don't know what im doing. basically i need to ma