<div dir="ltr">Hi, <div>I'm Ayush <span style="color:rgb(0,0,0);white-space:pre-wrap">an undergraduate Computer Science student from Thapar university, India. I was fiddling with xapian since the morning and trying to understand the code and internals of Xapian. </span></div><div>I tried implementing the bite sized project idea posted here: <a href="https://trac.xapian.org/wiki/ProjectIdeas#AddnewOmegaScriptcommandtodoasubstringsearch">https://trac.xapian.org/wiki/ProjectIdeas#AddnewOmegaScriptcommandtodoasubstringsearch</a> but could not understand what needs to be returned when this command is called. </div><div>This line is not so clear to me: <span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">expand to the offset of the first occurrence of </span><tt style="font-size:13px;color:rgb(102,0,0);border:1px solid rgb(238,221,204);border-radius:0.25em;padding:0px 0.3em;background:rgb(250,250,250)">fish</tt><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif"> from the start of the string if </span><tt style="font-size:13px;color:rgb(102,0,0);border:1px solid rgb(238,221,204);border-radius:0.25em;padding:0px 0.3em;background:rgb(250,250,250)">$query</tt><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">, or to </span><tt style="font-size:13px;color:rgb(102,0,0);border:1px solid rgb(238,221,204);border-radius:0.25em;padding:0px 0.3em;background:rgb(250,250,250)"></tt><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">if </span><tt style="font-size:13px;color:rgb(102,0,0);border:1px solid rgb(238,221,204);border-radius:0.25em;padding:0px 0.3em;background:rgb(250,250,250)">$query</tt><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif"> doesn't contain the substring </span><tt style="font-size:13px;color:rgb(102,0,0);border:1px solid rgb(238,221,204);border-radius:0.25em;padding:0px 0.3em;background:rgb(250,250,250)">fish</tt><span style="font-size:13px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif">.</span></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">Also in query.cc file in omega dir, when defining function descriptions, what does the evalargs and ensure arguments mean? </font></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">Thanks! </font></div><div><font color="#000000" face="Verdana, Arial, Bitstream Vera Sans, Helvetica, sans-serif">Ayush </font></div></div>