Solr Post Filter: Mixing frange and Boolean Queries

2016-06-28 Thread Vasu Y
Hi, I am trying to apply a post filter by using frange and in the same filter, I also need to use boolean queries. When I try this, I get Syntax error. Is there a way to achieve this without writing my own Post Filter Class? Here is what the query & fq looks like: q=Name:test* fq={!frange l=0 u=0

Filter Query that matches all values of a field

2016-07-04 Thread Vasu Y
Hi, I have a single type field that can contain zero or more values (comma separated values). This field stores some sort of access value. In the filter, I am given a list of allowed values for the field and a document must be considered if all values contained in its field must be present in the

Post filter with boolean query

2016-07-06 Thread Vasu Y
Hi, I am trying to apply a filter by specifying cost=100, but I would like to use boolean query on lines described below and it seems to be filtering documents; not sure if it's doing pre-filtering or post-filtering. But, I saw some old post that "if the query inside the filter does not have a Po

Custom Post-Filter in Solr 3.3.0

2016-07-07 Thread Vasu Y
Hi, Thanks to Erik Hatcher's blog on Custom security filtering in Solr ( https://lucidworks.com/blog/2012/02/22/custom-security-filtering-in-solr/ ). I have a similar requirement to do some post-filtering. Our environment is Solr 3.3.0 and when i use the Erik's sample, AccessControlQuery wouldn't

Custom Post Filter length & performance

2016-07-12 Thread Vasu Y
Hi, I am implementing a custom post filter for permission checks along the lines described by Erik at https://lucidworks.com/blog/2012/02/22/custom-security-filtering-in-solr/ Is there a limit to the length (number of characters) of the custom post filter? In our case, length of this "fq" could b

Querying by a field value or if field doesn't exist

2016-07-21 Thread Vasu Y
Hi, I want to query for all documents where field "field1" contains a value "value1" or the document doesn't contain the field "field1" at all. I tried the query: "field1:value1 OR -field1:[* TO *]" and it didn't return anything. When I try them separately they work fine; "field1:value1" or th

Sorting - uppercase value first or lowercase value

2016-07-25 Thread Vasu Y
Hi, We are indexing our objects into Solr and let users to sort by different fields. The sort field is defined as specified below in schema.xml: For a field of type "lowercase", if we have the field values: APPLES, ZUCCHINI, banana, BANANA, apples, zucch

Sorting non-english text

2016-08-25 Thread Vasu Y
Hi, I have a text field which can contain values (multiple tokens) in English; to support sorting, I had in schema.xml to copy this to a new field of type "lowercase" (defined as below). I also have text fields of type text_de, text_es, text_fr, ja, cn etc. I intend to do to copy them to a new f

Re: Sorting non-english text

2016-08-25 Thread Vasu Y
5, 2016 at 7:59 PM, Ahmet Arslan wrote: > Hi Vasu, > > There is a field type or something like that (CollationKeyAnalyzer) for > language specific sorting. > > Ahmet > > > > On Thursday, August 25, 2016 12:29 PM, Vasu Y wrote: > Hi, > I have a text field which

Unicode collation - Sorting text for multiple languages

2016-08-29 Thread Vasu Y
Hi, I was looking at Unicode Collation @ Wiki ( http://wiki.apache.org/solr/UnicodeCollation#Sorting_text_for_multiple_languages ) and it seems to suggest that: Use the Unicode "default" collator (to overcome/minimize increase in disk and indexing costs) over defining collated fields for each langu

Sorting on different language fields

2016-08-30 Thread Vasu Y
Hi, We are indexing a set objects with fields like objectName, objectDescription etc. All the objects have objectName specified in English language; some objects also have their name specified in an additional language like French and indexed to objectName_fr field. When we query from SOLR, we wa

Re: Sorting on different language fields

2016-08-31 Thread Vasu Y
r at indexing or query time. > > HTH, > Emir > > > On 31.08.2016 08:07, Vasu Y wrote: > >> Hi, >> We are indexing a set objects with fields like objectName, >> objectDescription etc. All the objects have objectName specified in >> English >> lan

Archiving documents

2016-09-29 Thread Vasu Y
Hi, We would like to archive documents based on some criteria (like those that were not modified for more than an year OR are least used) in order to reduce storage requirements. I would like hear some of the best practices followed. How about having main collection and optionally an archive coll

SOLR Sizing

2016-10-03 Thread Vasu Y
Hi, I am trying to estimate disk space requirements for the documents indexed to SOLR. I went through the LucidWorks blog ( https://lucidworks.com/blog/2011/09/14/estimating-memory-and-storage-for-lucenesolr/) and using this as the template. I have a question regarding estimating "Avg. Document Si

Re: SOLR Sizing

2016-10-13 Thread Vasu Y
Thank you all for the insight and help. Our SOLR instance has multiple collections. Do you know if the spreadsheet at LucidWorks ( https://lucidworks.com/blog/2011/09/14/estimating-memory-and-storage-for-lucenesolr/) is meant to be used to calculate sizing per collection or is it meant to be used f