ajermakovics / eclipse-instasearch

Eclipse plug-in for fast code search
http://marketplace.eclipse.org/content/instasearch
Eclipse Public License 2.0
170 stars 48 forks source link

Search using a Working Set filter - does not work #37

Open rafi-d opened 11 years ago

rafi-d commented 11 years ago

Hello, I am using version 1.5.2 on the latest Eclipse IDE (Juno SP2). Without using any filter - the search seems to work . Trying to use the pre-defined Wroking set - result in 0 results. My project has folders, all linked to locations on my HD. See screenshots: http://www.imagebam.com/remove/260000034/00921848e83b7d73d54c17dc1d338e89 http://www.imagebam.com/remove/260000038/49f32ea210cd3c09a2c29bf82278efe9 http://www.imagebam.com/remove/260000039/a57f6ca1f8d877ddb7c2e176efa2ab03

Any help ? Tips?

ajermakovics commented 11 years ago

What do you mean by pre-defined working set? Those images don't seem to be available anymore

rafi-d commented 11 years ago

Sorry... http://www.imagebam.com/image/b4cf70260252511 http://www.imagebam.com/image/1eea35260252517 http://www.imagebam.com/image/11951e260252519 What di you mean what do I mean?... One of your "filter by" options are "Working sets", right ? So when I select one of my sets to narrow down the search results to a group of files belownging to that sets - it shows 0 files :( I hope it is now visible in the above pictures.

rafi-d commented 11 years ago

Sorry... http://www.imagebam.com/image/b4cf70260252511 http://www.imagebam.com/image/1eea35260252517 http://www.imagebam.com/image/11951e260252519 What di you mean what do I mean?... One of your "filter by" options are "Working sets", right ? So when I select one of my sets to narrow down the search results to a group of files belownging to that sets - it shows 0 files :( I hope it is now visible in the above pictures.

Thanks

Rafi

From: andre.js [mailto:notifications@github.com] Sent: Friday, June 14, 2013 00:55 To: ajermakovics/eclipse-instasearch Cc: rafi-d Subject: Re: [eclipse-instasearch] Search using a Working Set filter - does not work (#37)

What do you mean by pre-defined working set? Those images don't seem to be available anymore

— Reply to this email directly or view it on GitHub https://github.com/ajermakovics/eclipse-instasearch/issues/37#issuecomment-19427709 . https://github.com/notifications/beacon/Hbd-Y-_Vzi3GwqZdXNYpVdibtvXvtlChrzWNT_KrSD8YJmlMYncWb_lcDaFPgQfO.gif

scottresnik commented 9 years ago

Same issue here. I have a working set defined that only includes a subset of my test classes, and the following search results in 0 results: test ws:"Container Tests". When I select this working set in the Project Explorer I get many JUnit tests. All full of the word test.

ajermakovics commented 9 years ago

@scottresnik Seems to be working in general. At least I couldn't reproduce this bug in my own workspace. Does it work with any other keywords and working sets?

scottresnik commented 9 years ago

I can search for almost anything and get results, as soon as I add the ws:any-workingset-name I get 0 results.

I renamed the working set from my prior comment to see if having a space in the name was messing up the search. That did not help either.

ajermakovics commented 9 years ago

Probably some logging in this class would help diagnosing the issue. https://github.com/ajermakovics/eclipse-instasearch/blob/master/instasearch/src/it/unibz/instasearch/indexing/querying/WorkingSetExpander.java If you don't mind doing some debugging in this class then it'd be possible to find the issue that way. Happy to give tips on that.

The WorkingSetExpander replaces the workspace name by with a list of projects. Does filtering by proj: work then?