Schema model to store additional field metadata

2012-09-07 Thread sysrq
Hi, I want to create a Solr index of articles. Each article should have a title, content, published date and an arbitrary number of images attached to. An article could look like this: title: An article about Foo and Bar content: This is some text about Foo and Bar. published: 2012.09.07T

Re: Re: Schema model to store additional field metadata

2012-09-07 Thread sysrq
> Why would you store the actual images in SOLR? No, the images are files on the filesystem. Only the path to the image should be stored in Solr. > And you are most likely looking at dynamic fields as the solution > > 1) Define *_Path, *_Size, *_Alt as a dynamic field with appropriate types > 2

StopFilterFactory attribute format in schema.xml

2012-09-09 Thread sysrq
Hi, what is the effect of the format attribute for StopFilterFactory? E.g. format="snowball"? Sorl ships with a schema.xml with a lot of good examples. The file is in example/solr/conf/schema.xml and defines a for German text:

Aw: Get parent when the child is a search hit

2012-09-10 Thread sysrq
> I'm using Solr 4 RC, and my documents look like this: > > > 123 > Folder name > > > abc > Document 1 > 123 > > > def > Document 2 > 123 > > > Meaning there are two documents which are in the same folder in this > example. When querying documents I need the name of the fold

solr.StrField with stored="true" useless or bad?

2012-09-11 Thread sysrq
Hi, I have a StrField to store an URL. The field definition looks like this: Type "string" is defined as usual: Then I realized that a StrField doesn't execute any analyzers and stored data verbatim. The data is just a single token. The purpose of stored="true" is to store the raw string dat

Cannot parse ":", using HTTP-URL as id

2012-09-12 Thread sysrq
Hi, I defined a field "id" in my schema.xml and use it as an : id I want to store URLs with a prefix in this field to be sure that every id is unique among websites. For example: domain_http://www.domain.com/?p=12345 foo_http://foo.com bar_http://bar.com/?doc=452 I wrote a Java app, w

Aw: Re: Cannot parse ":", using HTTP-URL as id

2012-09-12 Thread sysrq
> term query parser is your friend in this case. With this you don't need to > escape anything. > SolrQuery query = new SolrQuery(); > query.setQuery("{!term f=id}bar_http://bar.com/?doc=452";); But how can I *store* a document with an URL as a field value ? E.g. "domain_http://www.domain.co

Aw: Re: Cannot parse ":", using HTTP-URL as id

2012-09-12 Thread sysrq
my bad, using "term query parser" works, thanks ahmet. > Gesendet: Mittwoch, 12. September 2012 um 19:40 Uhr > Von: sy...@web.de > An: solr-user@lucene.apache.org > Betreff: Aw: Re: Cannot parse ":", using HTTP-URL as id > > > term query parser is your friend in this case. With this you don't nee