Hey there Olly,hope you are fine . :) I have the code for Paice Husk ready .But I am not being able to modify the Xapian source code I have downloaded.<br><br>I modified the stem.cc file so that get_description() returns a default welcome string insead of calling the internal get_description() method (just for fun ) .I than used make and make install again and then wrote a simple indexer which called the stem.get_description() method .However,I got the original string instead of the one I had modified.Why didn&#39;t the change I had made get reflected ? I know this is a naive question but I am new to open source and have never modified open source code before.Sorry for taking up your time.I tried everything I could ,( even built the entire code again) but nothing happened.<br>
<br>The code for the paice husk stemmer is ready and Ive understood how to use it for indexing.I am supposed to inherit Xapian::StemImplementation ,implement the pure virtual  functions(have already done that)  and than pass a reference  to the inherited object to Xapian::Stem::Stem(StemImplementaion *pointer) ,right ? :) <br>
<br>Thank you so much for your time :) .Want to work on the Eset modification(being able to specify the weighing scheme like Mset) next.Will discuss it in detail with you once I am done with this.<br><br>-Warm Regards <br>
-Aarsh :)<br><br><div class="gmail_quote">n Sat, Jan 12, 2013 at 12:19 PM, Olly Betts <span dir="ltr">&lt;<a href="mailto:olly@survex.com" target="_blank">olly@survex.com</a>&gt;</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>
&gt; Hi guys.I&#39;ve finished an example indexer which acts like a grep replacement<br>
&gt; for a file.It indexes each line containing a proper noun  in a given text<br>
&gt; file.The line containing the proper noun will be displayed upon searching<br>
&gt; for that noun.I would like to add it to the community code examples.I&#39;m<br>
&gt; planning to write more examples which demonstrate some advanced features of<br>
&gt; Xapian along similar lines soon. Can anyone please help me on how to add my<br>
&gt; examples to the community ?<br>
<br>
</div>Cool.  There&#39;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&#39;d probably suggest using a<br>
code hosting site (that&#39;s certainly a better option if it&#39;s more than a<br>
single file).<br>
<div class="im"><br>
&gt; I now want to develop a Paice/Husk stemmer for Xapian.The stemmer itself is<br>
&gt; not that hard to implement and I already read the page mentioned in the<br>
&gt; resources for the stemming project.But Ive yet to fiddle with the code base<br>
&gt; and so don&#39;t know how to add the stemmer to the codebase.Il be extremely<br>
&gt; 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&#39;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&#39;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>
&gt; Moreover,I wold also love to write a patch for multiple spelling<br>
&gt; suggestions as Xapian only suggests one right now.Any help/suggestions ?<br>
<br>
</div>There&#39;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&#39;re<br>
all on a branch currently, and haven&#39;t yet been merged.<br>
<div class="im"><br>
&gt; My basic problem is that given any feature I want to fiddle<br>
&gt; with/improve/change,I don&#39;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>
&gt; 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>