Author Topic: Searching with context  (Read 2516 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Searching with context
« on: April 01, 2014, 01:04:22 AM »
Slick has great searching, but it doesn't work so well when the data you are searching for is spread out a bit.

Is it possible to do searching with some context information?
Or searching for multiple expressions, with some relation between them?

For example,
   Search inside the current function (java, c, etc)
   Search inside the current function (java, c, etc)
   Search inside the current node (xml)
   
   Search for "foo" inside every <blat> node that has "name=bar"

Maybe slick needs something like an SQL language :-)
   search for "foo" where "bar" occurs upto 3 lines before
   and "blat" occurs on the same line....

   

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Searching with context
« Reply #1 on: April 01, 2014, 12:42:24 PM »
There is already support for limiting scope of search to Current Procedure in the Look in: drop down in Find and Replace.  Have to be in a language that has tagging support and a procedure/function/method concept.  There is not an equivalent for XML current node/tag, but that is a pretty good idea for an future enhancement. 

I like the idea for using a SQL-like query statement for searches, but that is a much larger/grander feature.

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Searching with context
« Reply #2 on: April 01, 2014, 09:23:54 PM »
Just found this
http://sphinxsearch.com/about/sphinx/

seems to have an active forum.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Searching with context
« Reply #3 on: April 07, 2014, 09:05:38 PM »
Thanks, Sphinx looks pretty cool.