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. Ahmet Arslan1969-12-31 19:00
  3. blargy1969-12-31 19:00
  4. Tommy Chheng1969-12-31 19:00
  5. blargy1969-12-31 19:00
  6. blargy1969-12-31 19:00
  7. Ahmet Arslan1969-12-31 19:00
  8. Gregg Hoshovsky1969-12-31 19:00
  9. Tommy Chheng1969-12-31 19:00
  10. blargy1969-12-31 19:00
  11. Dennis Gearon1969-12-31 19:00

[solr-user] Re: DIH field options

Subject:
Re: DIH field options
From:
Ahmet Arslan <iorixxx@...>
Date:
1969-12-31 19:00
Forgive me but I'm slightly retarded... I grew up underneath some power lines ;) I've read through that wiki but I still can't find what I'm looking for. I just want to give one of the DIH entities/fields a static value (ie it doesnt come from a database column). How can I configure this? FYI this is data-config.xml not schema.xml.   <document>     <entity name="item" query="select * from items">       <field name="my_field"  column="static_value_not_from_db"/>       ....     </entity>   </document>
I didn't do it by-myself but i think it can be done with TemplateTransformer[1] with something like: <field column="my_field" template="static_value_not_from_db" /> Alternatively you can define default value of a field in schema.xml: <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/> [1] http://wiki.apache.org/solr/DataImportHandler#TemplateTransformer

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.