Thanks for your detailed reply Olly , you really are a great help . :) Am on it ,will mail you after I'm done with the stemmer. :)<br><br>-Regards<br>-Aarsh<br><br><div class="gmail_quote">On Sat, Jan 12, 2013 at 12:19 PM, Olly Betts <span dir="ltr"><<a href="mailto:olly@survex.com" target="_blank">olly@survex.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 11, 2013 at 12:17:07AM +0530, aarsh shah wrote:<br>
> Hi guys.I've finished an example indexer which acts like a grep replacement<br>
> for a file.It indexes each line containing a proper noun in a given text<br>
> file.The line containing the proper noun will be displayed upon searching<br>
> for that noun.I would like to add it to the community code examples.I'm<br>
> planning to write more examples which demonstrate some advanced features of<br>
> Xapian along similar lines soon. Can anyone please help me on how to add my<br>
> examples to the community ?<br>
<br>
</div>Cool. There's a page on the wiki for examples here:<br>
<br>
<a href="http://trac.xapian.org/wiki/SampleCode" target="_blank">http://trac.xapian.org/wiki/SampleCode</a><br>
<br>
Anyone can edit the wiki - you just need to register first.<br>
<br>
You can attach files to the wiki page, but I'd probably suggest using a<br>
code hosting site (that's certainly a better option if it's more than a<br>
single file).<br>
<div class="im"><br>
> I now want to develop a Paice/Husk stemmer for Xapian.The stemmer itself is<br>
> not that hard to implement and I already read the page mentioned in the<br>
> resources for the stemming project.But Ive yet to fiddle with the code base<br>
> and so don't know how to add the stemmer to the codebase.Il be extremely<br>
> grateful if you could guide me here<br>
<br>
</div>You can subclass Xapian::StemImplementation and then wrap that in a<br>
Xapian::Stem object to use where you'd use the built-in stemmers:<br>
<br>
<a href="http://xapian.org/docs/apidoc/html/stem_8h.html" target="_blank">http://xapian.org/docs/apidoc/html/stem_8h.html</a><br>
<br>
I'd probably suggest you just do it as an external stemmer first, and<br>
once you have that working, then work on including it as part of the<br>
library.<br>
<div class="im"><br>
> Moreover,I wold also love to write a patch for multiple spelling<br>
> suggestions as Xapian only suggests one right now.Any help/suggestions ?<br>
<br>
</div>There's actually already a patch for that, along with a number of other<br>
enhancements to spelling correction done as a GSoC project, but they're<br>
all on a branch currently, and haven't yet been merged.<br>
<div class="im"><br>
> My basic problem is that given any feature I want to fiddle<br>
> with/improve/change,I don't know which part of the code base to access<br>
<br>
</div>Yeah, finding your way around a sizable source tree can take some<br>
getting used to. Have you seen this overview page?<br>
<br>
<a href="http://xapian.org/docs/code_structure.html" target="_blank">http://xapian.org/docs/code_structure.html</a><br>
<div class="im"><br>
> feel like I know a lot more about IR and Xapian than I used to :)<br>
<br>
</div>Great.<br>
<br>
Cheers,<br>
Olly<br>
</blockquote></div><br>