Issue Details (XML | Word | Printable)

Key: JRA-5930
Type: Improvement Improvement
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: Keith Lea
Votes: 6
Watchers: 5
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Default search operator should be AND, not OR

Created: 15/Feb/05 01:25 AM   Updated: 23/Jun/08 01:58 PM
Component/s: Filtering & Indexing
Affects Version/s: 3.0.3
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Cloners
 
Reference

Participants: Anton Mazkovoi [Atlassian], Jakob Sloth, Jeff Turner [Atlassian], Keith Lea, Maurizio Mancini and Volker Kleinschmidt
Since last comment: 23 weeks, 2 days ago
Support reference count: 5
Labels:


 Description  « Hide
Almost every popular search engine uses AND searches by default. This should be the default for JIRA searches, too.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] added a comment - 16/Feb/05 09:36 PM
Keith,

I am not exactly sure what you mean. Are your refering to free tet searching in issues' summary/description/comments?

If so, JIRA sorts the output by "relevance" so the issues that closer match the input will appear first. Is this not what you are seeing? If you absolutely need to limit the search with an AND operator you can separate the string by &&. For example:

search && for && all && these && strings

Please let us know if I misunderstood your query.

Thanks,
Anton


Keith Lea added a comment - 16/Feb/05 10:17 PM
I don't want to have to weed through bad results. I want to search the issues for "xml doctype exception", see that there are no matches, and file my issue. I don't want to have to browse through every single request which contains "xml" or "exception."

Jeff Turner [Atlassian] added a comment - 06/Sep/05 11:00 PM
It sounds like the problem here is that JIRA 3.0 returned results effectively unordered. In JIRA 3.2, searching for "xml doctype exception" will return issues with those exact words in the summary first, and subsequent results in order of decreasing 'relevance'. See JRA-5151

Keith Lea added a comment - 07/Sep/05 06:57 AM
Jeff, this is not a duplicate of that bug. I don't want to see any results which don't contain my words in the summary, without having to type + before every word. This is how every popular search engine works.

Jeff Turner [Atlassian] added a comment - 08/Sep/05 06:19 PM
Yes, I see what you mean.

I would submit that JIRA's existing search behaviour returns the best results for most people. If you search for "Default search operator", you get this issue as the first hit (keeping exact searchers happy) and get other issues listed, which are often also of interest to searchers. For instance, searching for "Default search operator" also returns the analogous Confluence issue CONF-1881.

This isn't to say that AND is never valid; just that OR returns more useful results for most people. If you want AND, add && between terms, eg. "Default && search && operator".


Keith Lea added a comment - 09/Sep/05 09:23 AM
If this is how you feel then I accept it but I don't think it's best for users. I wonder how you justify the behavior when Google, Yahoo, MSN all use AND search, and they are considered to produce very good results.

Anton Mazkovoi [Atlassian] added a comment - 11/Sep/05 09:25 PM
Keith,

I am not an expert on the matter but I am not sure if google returns only AND results. I believe the results are returned in order of relevance, and hence documents with more words in them are returned first.

Thanks,
Anton


Keith Lea added a comment - 11/Sep/05 09:39 PM
From http://www.google.com/help/basics.html#and :

"By default, Google only returns pages that include all of your search terms. There is no need to include "and" between terms. Keep in mind that the order in which the terms are typed will affect the search results. To restrict a search further, just include more terms. For example, to plan a vacation to Hawaii, simply type vacation hawaii."


Keith Lea added a comment - 11/Sep/05 09:43 PM
Also, a search for 'big AND teeth" on yahoo produces the same results and number of results as "big teeth." Also, on the results page it removes the AND from the search.

If you use the MSN Search Builder, and you type words in the Search Terms box and select "All of these terms," then click "Add to search," it inserts the words verbatim without any + or AND, which shows that MSN search is also AND by default.


Anton Mazkovoi [Atlassian] added a comment - 11/Sep/05 09:48 PM
I stand corrected - thanks.

Jakob Sloth added a comment - 13/Apr/07 03:23 AM
I think that this issue should be reopened and reconsidered for a number of reasons. The prime reason is that I strongly disagree with the notion that "JIRA's existing search behaviour returns the best results for most people".

Concretely, when I type the following search phrase into our JIRA installation:

"Error Log" topmenuen

I expect issues containing both the phrase "Error Log" and the word "topmenuen" to be listed at the top of the list, but instead the list is swamped with issues containing only one of the search words, and the two issues containing both words aren't listed first.

My theory is that the problem stems from the fact that one of the words is located in the Summary, whereas the other word is located in the Description. Trying to boost the weight of one of the search words using, for example, ^4, doesn't help either. (This just shuffles the results, still without putting results with both words in the top).

I've previously filed a support case regarding the issue, but I was told to comment on this issue instead.

Another reason for reopening and reconsidering this issue is that AND searches are now the default behaviour in Confluence as well (see the linked issue).


Maurizio Mancini added a comment - 03/Jan/08 09:10 AM
Hi,

I want to add my 2 cents to this issue. My original issue was https://support.atlassian.com/browse/JSP-17318. This is an extract from my comment on that issue:

***************
You have to keep in mind that people are now used to using a "google like" ability and while the arguments made on issue JRA-5930 are okay I don't think they are solid enough to justify ignoring the issue.

Since confluence is using the AND by default, then why not be consistent. I believe that is what Atlasssian is now pushing with your new JIRA studio. The fact that it is a uniform platform. If you want your platform to be uniform then what could be more important than having a uniform way of searching for stuff regardless of which product I am using?

If you guys are really worried about affecting existing users that are used to the OR default, then give me a system parameter that I can set based on my preference. Then this would make everyone happy.
****************


Anton Mazkovoi [Atlassian] added a comment - 07/Jan/08 04:26 AM
Maurizio,

I have reopened this issue. I think having the same behaviour between JIRA and Confluence certainly makes sense.

We will definitely keep this issue in mind, however, at the moment, I cannot give the exact implementation date for this issue.

Cheers,
Anton


Volker Kleinschmidt added a comment - 23/Jun/08 01:58 PM
The same argumentation used here led to success for Confluence users in CONF-1881. Confluence is now much easier to use - whereas our users still tear their hair out over how cumbersome searching is in JIRA. They just don't find stuff, and the fact that they have to type the term AND in uppercase doesn't help. If they don't find the page they're looking for in the first 10 results, most people won't be looking further and will assume it does not exist.

I also strongly disagree with the notion that Confluence returns the results in a useful order. For one thing, it would be sensible to return more recent results first among those with equal matching weight. But no, you always get the old junk from ten versions ago listed first. And clearly a match in the title should weight much more heavily than one in the description, but a phrase match in the description should weigh more heavily than a single-word match in the title.