Lucid Imagination

Secondary links

  • Contact Us
  • Sign Up or Login
  • Downloads
  • Solutions
    • Partners |
    • Blog |
    • Software |
    • Services |
    • Training |
    • Case Studies |
    • Webcasts |
  • Developers
    • Blog |
    • Tech Articles |
    • Community |
    • Docs |
    • Downloads |
    • Whitepapers |
    • Podcasts |
  • About
    • Market Overview |
    • Management |
    • Company News |
    • In the Media |
    • Contact |

beta

Start new search

Back to search results

  1. FromDate
  2. Erick Erickson2010-03-12 13:59
  3. Mark Miller2010-03-12 15:01
  4. Marvin Humphrey2010-03-12 15:31

[java-dev] Re: [jira] Commented: (LUCENE-2308) Separately specify a field's type

Subject:
Re: [jira] Commented: (LUCENE-2308) Separately specify a field's type
From:
Erick Erickson <erickerickson@...>
Date:
2010-03-12 13:59
Congrats Chris!

I vote for thinkAboutNotIncludingNormsMaybe(true|false) <G>.....

Seriously double negatives are ugly IMO, +1 for changing....

Erick

On Fri, Mar 12, 2010 at 12:56 PM, Chris Male (JIRA) <jira@apache.org> wrote:

[ https://issues.apache.org/jira/browse/LUCENE-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844587#action_12844587] Chris Male commented on LUCENE-2308: ------------------------------------ I agree entirely. This is definitely the moment to remove any ambiguity or confusion in this API. I'll make sure to incorporate this idea.
Separately specify a field's type --------------------------------- Key: LUCENE-2308 URL: https://issues.apache.org/jira/browse/LUCENE-2308 Project: Lucene - Java Issue Type: Improvement Components: Index Reporter: Michael McCandless This came up from dicussions on IRC. I'm summarizing here... Today when you make a Field to add to a document you can set things index or not, stored or not, analyzed or not, details like omitTfAP, omitNorms, index term vectors (separately controlling offsets/positions), etc. I think we should factor these out into a new class (FieldType?). Then you could re-use this FieldType instance across multiple fields. The Field instance would still hold the actual value. We could then do per-field analyzers by adding a setAnalyzer on the FieldType, instead of the separate PerFieldAnalzyerWrapper (likewise for per-field codecs (with flex), where we now have PerFieldCodecWrapper). This would NOT be a schema! It's just refactoring what we already specify today. EG it's not serialized into the index. This has been discussed before, and I know Michael Busch opened a more ambitious (I think?) issue. I think this is a good first baby step. We
could
consider a hierarchy of FIeldType (NumericFieldType, etc.) but maybe hold off on that for starters...
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org
Congrats Chris!<div><br></div><div>I vote for thinkAboutNotIncludingNormsMaybe(true|false) &lt;G&gt;.....</div><div><br></div><div>Seriously double negatives are ugly IMO, +1 for changing....</div><div><br></div><div>Erick<br> <br><div class="gmail_quote">On Fri, Mar 12, 2010 at 12:56 PM, Chris Male (JIRA) <span dir="ltr">&lt;<a href="mailto:jira@apache.org">jira@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <br>    [ <a href="https://issues.apache.org/jira/browse/LUCENE-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12844587#action_12844587" target="_blank">https://issues.apache.org/jira/browse/LUCENE-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12844587#action_12844587</a> ]<br> <div class="im"><br> Chris Male commented on LUCENE-2308:<br> ------------------------------------<br> <br> </div>I agree entirely.  This is definitely the moment to remove any ambiguity or confusion in this API.  I&#39;ll make sure to incorporate this idea.<br> <div><div></div><div class="h5"><br> &gt; Separately specify a field&#39;s type<br> &gt; ---------------------------------<br> &gt;<br> &gt;                 Key: LUCENE-2308<br> &gt;                 URL: <a href="https://issues.apache.org/jira/browse/LUCENE-2308" target="_blank">https://issues.apache.org/jira/browse/LUCENE-2308</a><br> &gt;             Project: Lucene - Java<br> &gt;          Issue Type: Improvement<br> &gt;          Components: Index<br> &gt;            Reporter: Michael McCandless<br> &gt;<br> &gt; This came up from dicussions on IRC.  I&#39;m summarizing here...<br> &gt; Today when you make a Field to add to a document you can set things<br> &gt; index or not, stored or not, analyzed or not, details like omitTfAP,<br> &gt; omitNorms, index term vectors (separately controlling<br> &gt; offsets/positions), etc.<br> &gt; I think we should factor these out into a new class (FieldType?).<br> &gt; Then you could re-use this FieldType instance across multiple fields.<br> &gt; The Field instance would still hold the actual value.<br> &gt; We could then do per-field analyzers by adding a setAnalyzer on the<br> &gt; FieldType, instead of the separate PerFieldAnalzyerWrapper (likewise<br> &gt; for per-field codecs (with flex), where we now have<br> &gt; PerFieldCodecWrapper).<br> &gt; This would NOT be a schema!  It&#39;s just refactoring what we already<br> &gt; specify today.  EG it&#39;s not serialized into the index.<br> &gt; This has been discussed before, and I know Michael Busch opened a more<br> &gt; ambitious (I think?) issue.  I think this is a good first baby step.  We could<br> &gt; consider a hierarchy of FIeldType (NumericFieldType, etc.) but maybe hold<br> &gt; off on that for starters...<br> <br> --<br> This message is automatically generated by JIRA.<br> -<br> You can reply to this email to add a comment to the issue online.<br> <br> <br> ---------------------------------------------------------------------<br> To unsubscribe, e-mail: <a href="mailto:java-dev-unsubscribe@lucene.apache.org">java-dev-unsubscribe@lucene.apache.org</a><br> For additional commands, e-mail: <a href="mailto:java-dev-help@lucene.apache.org">java-dev-help@lucene.apache.org</a><br> <br> </div></div></blockquote></div><br></div>

Solr Powered

Give us your feedback

  • Lucene
  • Solr
  • Nutch
  • Tika
  • Mahout
  • Droids
  • PyLucene
  • Lucene.Net
  • Lucy
  • Lucene4c
  • Open Relevance Project
  • How We Can Help:
    • Getting Started |
    • Support Subscriptions |
    • White Papers |
    • Training |
    • Consulting |
    • Contact Us |
  • Developers:
    • Blog |
    • Documentation |
    • Tech Articles |
    • Podcasts and Videos |
    • Community |
  • Downloads:
    • LucidWorks for Solr |
    • LucidWorks for Lucene |
    • LucidGaze for Solr |
    • LucidGaze for Lucene |
  • Products:
  • Services:

Contact | Privacy Policy | Legal Terms of Use | Copyrights and Disclaimers | Admin

Apache Solr, Apache Lucene, ApacheCon and their logos are trademarks of the Apache Software Foundation.

© 2010 Lucid Imagination. All Right reserved.