palantir / stash-codesearch-plugin

Provides global repository, commit, and file content search for Atlassian Stash instances
Apache License 2.0
62 stars 20 forks source link

Codesearch never finds results #8

Open myio561 opened 9 years ago

myio561 commented 9 years ago

Now that I have my plugin installed and Elasticsearch running on the same server (port 9300) is there additional configuration I need to make? I see the Codsearch menu in Stash but it never finds any results regardless of what I type in. I have entered method names I know are in many places in my code base. I also tried specifying a project and file extension, but still no results.

Do I have to configure Elasticsearch to point to my git repo or something?

terabyte commented 9 years ago

As it says in the README.md (but maybe we should fix this and/or make it more clear - several people had this problem) you have to enable global indexing, it is not turned on by default. Once you ensure that indexing is enabled and you retrigger a global reindex, you should start to see results.

myio561 commented 9 years ago

When I go to Manage add-ons, then open up Codesearch the Codesearch Global Settings line shows: Codesearch Global Settings (global-settings-link) There are no settings visible to edit and the global-settings-link isn't a link.

gliptak commented 9 years ago

I also face this when running with Stash v3.1.4

gliptak commented 9 years ago

Maybe I missed menu item earlier. Try accessing:

http://stash:7990/plugins/servlet/codesearch/globalsettings

(this page shows up if the plugin successfully initialized ...)