stash-codesearch-plugin icon indicating copy to clipboard operation
stash-codesearch-plugin copied to clipboard

Codesearch never finds results

Open myio561 opened this issue 10 years ago • 4 comments

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?

myio561 avatar May 08 '15 17:05 myio561

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.

terabyte avatar May 08 '15 17:05 terabyte

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.

myio561 avatar May 08 '15 17:05 myio561

I also face this when running with Stash v3.1.4

gliptak avatar Jul 17 '15 14:07 gliptak

Maybe I missed menu item earlier. Try accessing:

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

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

gliptak avatar Jul 17 '15 19:07 gliptak