<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey again,<div><br></div><div>Just to let you know that I've started playing around with a couple of things on the dsl. There is some code in org.hibernate.search.query.dsl so if people can have a look and tell me if I'm going down the right track then it would be great.</div><div><br></div><div>Essentially the way I've set it up is that: - </div><div><br></div><div>-> User creates an instance of a SealedQueryBuilder</div><div><br></div><div>-> Uses that to create a QueryContext where you can give it what you want to search: - </div><div><br></div><div>-> This is all very basic but right now a very simple API would be like: - </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#2B00FF">        </font></span><font class="Apple-style-span" color="#2B00FF">QueryContext qc = new QueryContext().withAnalyzer(analyzer).search(String search).onField(String field);</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#2B00FF">        </font></span><font class="Apple-style-span" color="#2B00FF">Query luceneQuery = qc.build();</font></div><div><br></div><div>Reckon this is the sort of thing we're aiming for?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div><br><div><div>On 25 Oct 2009, at 16:45, Emmanuel Bernard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks for the update.<br>Most important, commit your work often. As long as it compiles and does not break tests outside your area, do commit. That's the only way to review code properly.<br><br>On 25 oct. 09, at 14:32, Navin Surtani wrote:<br><br><blockquote type="cite">Hello all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Just to let you know that I'm focusing on writing up the DSL asap. I<br></blockquote><blockquote type="cite">realise that since I've switched over to part-time due to university<br></blockquote><blockquote type="cite">term it's tough to keep in touch with everyone constantly. So I<br></blockquote><blockquote type="cite">thought I'd just drop the list a quick spam email.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Emmanuel, you had mentioned that you want this done fairly quick (from<br></blockquote><blockquote type="cite">other emails on the list) so I'm gonna push to do this as quick as I<br></blockquote><blockquote type="cite">can. The next couple of weeks are likely to be slightly busy but I<br></blockquote><blockquote type="cite">should have one or two Mondays off in the run-in to Devoxx so fingers<br></blockquote><blockquote type="cite">crossed over those I can sit down and hack through some coding. Also<br></blockquote><blockquote type="cite">since I'll be around for a full day it will be easier to communicate<br></blockquote><blockquote type="cite">via Skype etc etc.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'll generally try and keep people updated as much as I can via<br></blockquote><blockquote type="cite">emailing the devlists so I can get some feedback/input/strokes of<br></blockquote><blockquote type="cite">genius from the various crews.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Navin Surtani<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Intern Infinispan<br></blockquote><blockquote type="cite">Intern JBoss Cache Searchable<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">hibernate-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:hibernate-dev@lists.jboss.org">hibernate-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br></blockquote><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Navin Surtani</div><div><br></div><div>Intern Infinispan</div><div>Intern JBoss Cache Searchable</div></span>
</div>
<br></div></body></html>