Hi Alex, On Wed, Jan 23, 2013 at 7:47 PM, Alexandre Rafalovitch <arafa...@gmail.com>wrote:
> On Wed, Jan 23, 2013 at 12:23 PM, Eduard Moraru <enygma2...@gmail.com > >wrote: > > > The only small but workable problem I have now is the same as > > https://issues.apache.org/jira/browse/SOLR-3598. When you are creating > an > > alias for the field "who", you can't include the actual field in the list > > of alias like "f.who.qf=who,what,where" because you`ll get an "alias > loop" > > exception. > > > > But why do you need 'title' field at all? I can see it is 'generic' > formatting, but how useful can that be if you are actively multilingual? > I find it useful when you index a (XY) language that is not configured in schema.xml. When this happens, text_ml (the name that I`ve come up with for the actual text_general type field) indexes the lightly analyzed content and then I can query it because it's included in the "f.title.qf=title_ml,title_en,title_fr,..." alias that I have set up. The title_XY field that is attempted to be indexed when the language is not configured gets ignored by a dynamic field that catches unknown fields (as per the example in the example schema.xml). > > But if you need it, can't it be just title_generic in the schema. You can > probably use Request Update Processors to change the field name if you > can't rename it in the client/source. > > And if you are worried about the client getting the field names, I believe > you can alias them on the way out as well, using a different parameter. > Yes, I have come to the conclusion that "text_ml" is a good choice and semantically OK in my schema.xml. Now, what worries me a bit is the fact that I have a copyField set up from "title_*" to "title_ml" to do what I have mentioned above. My worry is that the copyField might also cause "title_ml" (since it matches the wildcard pattern) to be copied (redundantly) to "title_ml". I have not yet tested this in practice, but I hope it is not an issue (hoping that Solr is smart enough). Thanks, Eduard > Regards, > Alex. > > Personal blog: http://blog.outerthoughts.com/ > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > - Time is the quality of nature that keeps events from happening all at > once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) >