Use a boolean field as a flag for another, just stored, field
Hi, I want to be able to select from the index the documents who have a certain field not null. The problem is that the field is not indexed just stored. I'm not interested in indexing that field as it is just an internal URL. The idea was to add another field to the document - a boolean field - based on the initial field: 'True' for exiting field, 'False' for null - I could copy the initial field and use some analyzer having as output a bool result. Before trying to build a custom analyzer I wanted to ask if anything like this makes sense or if it is already available in Solr or if I completely missed some point. Regards, Alex -- View this message in context: http://lucene.472066.n3.nabble.com/Use-a-boolean-field-as-a-flag-for-another-just-stored-field-tp4006484.html Sent from the Solr - User mailing list archive at Nabble.com.
Use field as bool flag for another, not indexed, field
Hi, I want to be able to select from the index the documents who have a certain field not null. The problem is that the field is not indexed just stored. I'm not interested in indexing that field as it is just an internal URL. The idea was to add another field to the document - a boolean field - based on the initial field: 'True' for exiting field, 'False' for null - I could copy the initial field and use some analyzer having as output a bool result. Before trying to build a custom analyzer I wanted to ask if anything like this makes sense or if it is already available in Solr or if I completely missed some point. Regards, Alex -- View this message in context: http://lucene.472066.n3.nabble.com/Use-field-as-bool-flag-for-another-not-indexed-field-tp4006491.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Use a boolean field as a flag for another, just stored, field
Well - this was the idea: not to index the useless data from the initial field but to add and index another field, a boolean one, based on the content of the first one. -- View this message in context: http://lucene.472066.n3.nabble.com/Use-a-boolean-field-as-a-flag-for-another-just-stored-field-tp4006484p4006492.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Use a boolean field as a flag for another, just stored, field
Exactly, and the question is how to populate at index time a boolean field based on the content of another one ? My initial idea was to make a copy of the initial field - and 'filter' it to a boolean value (by specifying some analyzer in schema.xml) - but , as I said, I might miss some basic Solr ideas. -- View this message in context: http://lucene.472066.n3.nabble.com/Use-a-boolean-field-as-a-flag-for-another-just-stored-field-tp4006484p4006541.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Use a boolean field as a flag for another, just stored, field
Thanks for the detailed answer - this was also my first approach but I stopped in an early stage as I have to use for the moment Solr 1.4 with no update possible until next year. But I'll give it a try - I just wanted to be sure I was not missing something really easy ;) -- View this message in context: http://lucene.472066.n3.nabble.com/Use-a-boolean-field-as-a-flag-for-another-just-stored-field-tp4006484p4006727.html Sent from the Solr - User mailing list archive at Nabble.com.