Edgewall Software

Ticket #1268 (new enhancement)

Opened 3 years ago

Last modified 14 months ago

Search for a revision/ticket/report number should find that changeset/ticket/report

Reported by: Markus Bertheau <twanger@…> Owned by: mgood
Priority: normal Milestone: 0.11.2
Component: search system Version: 0.8.1
Severity: minor Keywords: number
Cc:

Description

e.g. when I input 614 in the search field, the changeset 614 should be among the top search results.

Attachments

Change History

  Changed 3 years ago by cboos@…

  • status changed from new to closed
  • resolution set to worksforme

Near miss.

You need to enter [614] in the search field, and there you go.

See also #952.

  Changed 3 years ago by cmlenz

  • status changed from closed to reopened
  • resolution worksforme deleted

Well, arguably we should still support searching just for the number... it wouldn't take you directly to the changeset page, but the results should include the changeset itself IMHO.

  Changed 3 years ago by cboos@…

Well, why not the ticket 614 as well then... (and the report 614 :))

  Changed 3 years ago by cmlenz

  • summary changed from Search for a revision number should find that changeset to Search for a revision/ticket/report number should find that changeset/ticket/report

Right :-)

  Changed 23 months ago by mgood

  • owner changed from jonas to mgood
  • status changed from reopened to new
  • severity changed from normal to minor
  • milestone set to 0.11

follow-up: ↓ 8   Changed 22 months ago by pphaneuf@…

I find it a bit odd that putting r614 in wiki formatted text (which is a bunch of places) will link to the changeset, but searching for the same doesn't work, I have to search for [614]. While I agree that just searching for 614 is a bit random (which of the ticket/changeset/report are you supposed to get), r614 is pretty intuitive (as well as very likely to be copy/pasted straight from other places, such as Subversion output in a terminal).

  Changed 22 months ago by Pierre Phaneuf <pphaneuf@…>

  • cc pphaneuf@… added

in reply to: ↑ 6   Changed 22 months ago by cboos

Replying to pphaneuf@gmail.com:

I find it a bit odd that putting r614 in wiki formatted text (which is a bunch of places) will link to the changeset, but searching for the same doesn't work,

Works like that in 0.10.

More precisely: any TracLinks entered in the quick search box will directly make you jump to the targeted resource. OTOH, if that TracLink is entered in the search box of the Search page itself, this will perform a search for that link and provide you with a link to that resource, on top of the other search results.

This ticket is about adding more "intelligence" to the search when entering a simple number.

  Changed 22 months ago by Pierre Phaneuf <pphaneuf@…>

  • cc pphaneuf@… removed

Already like that in 0.10? Excellent, I'll have to look into upgrading soon, then, particularly as 0.10 seems to be getting pretty close to release.

Thanks!

  Changed 22 months ago by cmlenz

#3419 was marked as duplicate of this ticket.

  Changed 22 months ago by cboos

#3856 marked as duplicate of this one as well.

  Changed 22 months ago by mgood

  • type changed from defect to enhancement

r3857 adds search results for tickets and changesets based on their identifiers. There's currently no searching for reports, which I didn't add. Does it make sense to search for reports too? I can't imagine a project having enough reports that you'd need to search them. Anyone see a reason to include reports in the search results?

  Changed 22 months ago by cboos

  • keywords number added

I'm not sure r3857 is really the adequate implementation for this feature...

First, you'll have the [search] min_query_length configuration option, usually set to 3, which will prevent you to search for changesets and tickets < 100 (and this is certainly problematic for tickets at least).

Then, for large projects, when you're looking for changeset 123, you don't necessarily want to get matches for r1123, r1231, r1232, r1233, ... , r2123, r3123 and so on...

Finally, with r3857, those results will now be placed among other results, not shown as special Quickjump targets, like suggested in #3419.

As an alternative implementation, I propose to extend the ISearchInterface to accept numerical searches. This could even in the future be extended to interval searches, which in the case of changesets would redirect you to the appropriate range.

follow-up: ↓ 15   Changed 20 months ago by cboos

Well, it's been one month now, still didn't get any feedback... so to put things straight: I'm strongly -1 on r3857 for the reasons explained above. Matt, can you please back out the change?

in reply to: ↑ 14 ; follow-up: ↓ 16   Changed 20 months ago by mgood

Replying to cboos:

Well, it's been one month now, still didn't get any feedback... so to put things straight: I'm strongly -1 on r3857 for the reasons explained above. Matt, can you please back out the change?

Well, I understood your points about how this could be better, but I don't see that change as being harmful in the meantime. Searching for "123" will already find other items which simply contain "123" in the text, such as a link to "r1234" or "r2123", so I don't think it's worse for those changesets to show up in the search results as well.

in reply to: ↑ 15   Changed 20 months ago by cboos

Replying to mgood:

.. Searching for "123" will already find other items which simply contain "123" in the text, such as a link to "r1234" or "r2123", so I don't think it's worse for those changesets to show up in the search results as well.

Well, the likeliness for getting many false positive is quite low in the above case, as not all changesets are linked to. With your changes, any 3-digit number will generate 20 false positive matches when you have 10k changesets and twice that number if you have also around 10k tickets. So those 40 results are always uninteresting, that's why I think it's better to leave them out. Now think about the people lowering the minimal number of characters allowed for search terms (korean sites, where most words are made of 2 characters) and you get even more uninteresting results (do the math ;) ).

Add/Change #1268 (Search for a revision/ticket/report number should find that changeset/ticket/report)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.