Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Comments on Improve the search mechanism to find answers to questions with specific tag

Post

Improve the search mechanism to find answers to questions with specific tag

+7
−0

I was searching for all of my answers in questions tagged with the git tag. So I used tag:git user:53078 post_type:2 as the search terms, and it found zero posts.

I removed the post type (tag:git user:53078), and it found only questions.

The only way to find the answers was by removing the tag and searching for the word "git" in the post body, such as git user:53078 post_type:2. It found my answers, but it's not 100% accurate, because it also found this answer, related to a question without the git tag (it has the word "git" in the body, but the question itself is not related to Git).

Of course the same applies if I don't include the user in the search terms: searching for tag:git post_type:2 returns no results, tag:git returns only questions, and the workaround (git post_type:2) found posts without the git tag, such as the one mentioned above and this one.


When searching for answers and a tag, could it consider that I'm looking for answers whose respective question has the given tag?

The workaround I used (searching for a word in the post body) is not ideal, as I'd have to use a word that all the answers have, or do many searches with different words until I find all of them (and I'd still have to filter out the false positives).

PS: I recognize that with the git tag the workaround works well, but that's not always the case with other tags (imagine doing that with the c tag).

History

2 comment threads

Related request on main Meta for reference (1 comment)
Studying the issue locally (3 comments)
Studying the issue locally
Elefy‭ wrote 3 months ago

Now that we have access to data dumps as well as the website source code, we should be able to reproduce this on our own machines to allow debugging and fixing it easier. For now I have yet to get qpixel up and running though due to some SELinux-specific quirks on Fedora which the team is helping me with, although with the Docker container it shouldn't be too much trouble. If anyone is ever able to reproduce the bug on

Elefy‭ wrote 3 months ago

their own instance, posting an issue on GitHub will definitely improve the visibility of this post and fix a search bug which is likely to affect and/or disrupt many users.

System‭ wrote 3 months ago

Thread renamed from "General comments" to "Studying the issue locally" by Karl Knechtel‭