Book a Demo

Author Topic: Searching - does it work?  (Read 3764 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Searching - does it work?
« on: May 18, 2006, 10:59:33 pm »
I was looking in the database to determine which diagram held a particular connector.

The DB told me the diagram was named: Item

I've got a pretty complex model - which I haven't been close to for some time, so I wasn't sure where it find it in the model.

I know, I thought; I'll use the new Search facility!

I entered:  Search term: Item  Search List: Extended

And while it found three pages of stuff, it did not find any diagrams containing the word Item.   ???

Should it have?  In other words, was it user error again?

TIA,
Paolo
« Last Edit: May 18, 2006, 11:00:46 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Searching - does it work?
« Reply #1 on: May 19, 2006, 03:07:29 am »
It does not search diagrams, just elements and such stuff.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Searching - does it work?
« Reply #2 on: May 19, 2006, 04:36:33 am »
Quote
It does not search diagrams, just elements and such stuff.
Interestingly, the Search function on the browser DOES find it...

Consistency, Consistency, Consistency! TM

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Searching - does it work?
« Reply #3 on: May 19, 2006, 05:05:19 am »
Ha! I never used that function but just found out that I quite often needed it. At least I'm a bit wiser now :)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Searching - does it work?
« Reply #4 on: May 22, 2006, 10:37:52 pm »
Further observations:

If the element in the browser has a stereotype, it will inhibit the finding of the search string (in the search project browser search function - as opposed to the other search functions)  Note: Searches are Exact (because I know what I'm looking for...)

Example:
Class: Counter
Search for: Counter
Found!      :)
Add stereotype «domain»
Search for: Counter
NOT Found!      :o
Search for: «domain» Counter
Found!      ???

Consistency, Consistency, Consistency! TM

Paolo
« Last Edit: May 22, 2006, 11:53:09 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Searching - does it work?
« Reply #5 on: May 23, 2006, 02:23:15 am »
Paolo, I suppose this is a bug. Probably you already sent this to Sparx...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Searching - does it work?
« Reply #6 on: May 23, 2006, 03:47:40 pm »
If this behaviour is an issue you can turn off the display of stereotypes in the tree.  (Tools | Options | General | Project Browser | Show Stereotypes)

Note that if searching for operations in this manner you will need to include the parenthesis and any parameter types.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Searching - does it work?
« Reply #7 on: May 23, 2006, 04:34:25 pm »
Quote
If this behaviour is an issue you can turn off the display of stereotypes in the tree.  (Tools | Options | General | Project Browser | Show Stereotypes)

Note that if searching for operations in this manner you will need to include the parenthesis and any parameter types.
With respect, Simon, that isn't the point...

It's broken...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Searching - does it work?
« Reply #8 on: May 23, 2006, 05:11:28 pm »
I didn't comment about whether it should or shouldn't behave this way because I didn't want to get into an argument about it.

You're searching the tree for an element with exactly the text specified.  From that point of view it is working correctly.

So perhaps what you want is an option to exclude the stereotype.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Searching - does it work?
« Reply #9 on: May 23, 2006, 05:31:16 pm »
Quote
I didn't comment about whether it should or shouldn't behave this way because I didn't want to get into an argument about it.

You're searching the tree for an element with exactly the text specified.  From that point of view it is working correctly.

So perhaps what you want is an option to exclude the stereotype.
No, I THOUGHT I was searching for an element whose NAME was EXACTLY that... (If it's a method then I'm not interested in the parameters).

EA already appears to have at least 4 types of "SEARCHES" each with different mechanisms, scopes, triggers and outcomes.

In an application with structured data, finding and searching is NOT about looking in arbitrarily constructed strings...
It's BROKEN!

Now I agree at least two types of lookup is required...
  • The FIND type - within a scope, search in a specified direction, if found goto the first occurrence.  FINDNEXT will find the next occurrence in the specified direction.
  • The SEARCH type - provide a report of all the occurrences in a given scope.  Selecting a result entry should go there...

Both search types will also need depth criteria (similar to the field selections in the current Advanced Searching)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!