1

Hi,

I want to be able to index Fogbugz cases and make full-text search on them from inside a plugin.

My first idea was to make my own index and query it using Lucene.Net. However it looks like plugins are forbidden to write to file system and therefore I can't store search index on disk.

Then I had an idea to use internal Fogbugz search programmatically but the only function in the API that looked appropriate was CPluginApi.Bug.SearchBugs(). When I tried several searches with it it always returned all the cases including the ones that were absolutely irrelevant. Moreover the cases went in the same order as always so the results were not ranked at all. Am I doing something wrong here?

Has anybody solved a similar problem before? Any idea is highly appreciated.

Thanks, Mateo

flag

2 Answers

1

I'm having trouble reproducing this problem; whenever I search via api.Bug.SearchBugs I get the exact same results that I do from the same string and ordering in the FogBugz search box. Can you try a query with a very, very small result set from the search box (say 1 result bug or so?), and post the query, the result when posted from the search box, and some information (count of results, etc.) about the results from the api search function?

link|flag
0

Hi Brett, Sorry, my fault. You are right, api.Bug.SearchBugs() returns the same results as the search box in web ui. There was simply a bug in my code. Regards, Mateo.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.