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

Underscore still splits when combined with an additional NOT term #12

Closed shabbyrobe closed 12 years ago

shabbyrobe commented 12 years ago

Searching for FOO_BAR returns only matches with FOO_BAR in the document as expected.

Searching for FOO_BAR -baz, "FOO_BAR" -baz or "FOO_BAR" NOT "baz" returns documents with either foo or bar, and not containing baz.

Using the latest version of Instasearch for 3.7 from Eclipse Marketplace.

ajermakovics commented 12 years ago

Thanks for reporting! InstaSearch will split by underscore if it does not find any exact matches. So if FOO_BAR -baz did not return any results it will try to find something similar. If its searching for similar matches the status bar in Eclipse will say "N similar results".

Please re-open the issue if you think there's still a bug.