Re: Boolean Field

2017-07-06 Thread Erick Erickson
e the the line where you are >>> creating >>> the above field1 >>> >>> >> >>> On Thu, Jul 6, 2017 at 2:42 PM, Saurabh Sethi >> > >>> wrote: >>> >>> > Do we need to store boolean field in order to query it

Re: Boolean Field

2017-07-06 Thread Saurabh Sethi
; the above field1 >> >> > >> On Thu, Jul 6, 2017 at 2:42 PM, Saurabh Sethi > > >> wrote: >> >> > Do we need to store boolean field in order to query it? >> > >> > The query I am running is "field1:true" >> > >

Re: Boolean Field

2017-07-06 Thread Saurabh Sethi
On Thu, Jul 6, 2017 at 12:16 PM, Susheel Kumar wrote: > and how do you create the field? Share the the line where you are creating > the above field1 > > > On Thu, Jul 6, 2017 at 2:42 PM, Saurabh Sethi > wrote: > > > Do we need to store boolean field in order to

Re: Boolean Field

2017-07-06 Thread Susheel Kumar
and how do you create the field? Share the the line where you are creating the above field1 wrote: > Do we need to store boolean field in order to query it? > > The query I am running is "field1:true" > > With the following field type, where "stored=fa

Boolean Field

2017-07-06 Thread Saurabh Sethi
Do we need to store boolean field in order to query it? The query I am running is "field1:true" With the following field type, where "stored=false", query returns 0 result. But if I change stored to "true", same query works. Thanks, Saurabh

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Chris Hostetter
: When I use your url example : http://localhost:8983/solr/select?q=*:*&rows=100&fl=id,inStock,if%28inStock,10,0%29&debugQuery=true : I have : : 10 : (and my document does not have the inStock field) Elodie, this is definitely a tricy one... I can reproduce the problme you are describing, on 4.

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Elodie Sannier
". Starting from the "SolrCloud - Getting Started" page with the document exampledocs/ipod_video.xml and removing the boolean field "inStock": true demonstrates the problem. When requesting with bf=if(inStock,10,0) : curl -sS "http://localhost:8983/solr/select?q=*:*&

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Elodie Sannier
iki.apache.org/solr/FunctionQuery#field says "0 is returned for documents without a value in the field." so we could expect that the field value would be "false". Starting from the "SolrCloud - Getting Started" page with the document exampledocs/ipod_video.xml and remo

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Yonik Seeley
the > field value would be "false". > > Starting from the "SolrCloud - Getting Started" page with the document > exampledocs/ipod_video.xml and removing the boolean field "inStock": name="inStock">true demonstrates the problem. > When requesti

Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Elodie Sannier
nts without a value in the field." so we could expect that the field value would be "false". Starting from the "SolrCloud - Getting Started" page with the document exampledocs/ipod_video.xml and removing the boolean field "inStock": true demonstrates the probl

Re: Use a boolean field as a flag for another, just stored, field

2012-09-10 Thread simple350
ssage 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.

Re: Use a boolean field as a flag for another, just stored, field

2012-09-10 Thread Chris Hostetter
: 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

Re: Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread simple350
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

Re: Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread Savvas Andreas Moysidis
wrote: > 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-boolea

Re: Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread simple350
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

Re: Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread Savvas Andreas Moysidis
tored. > 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 a

Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread simple350
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

Re: Problem with faceting on a boolean field

2012-04-17 Thread Yonik Seeley
On Tue, Apr 17, 2012 at 2:22 PM, Kissue Kissue wrote: > Hi, > > I am faceting on a boolean field called "usedItem". There are a total of > 607601 items in the index and they all have value for "usedItem" set to > false. > > However when i do a search fo

Re: Building query based on value of boolean field

2010-09-10 Thread PeterKerk
Oh and the field in the result looks like: false but when I do this: q=partylocation:false I still get no results! :s -- View this message in context: http://lucene.472066.n3.nabble.com/Building-query-based-on-value-of-boolean-field-tp1449018p1453266.html Sent from the Solr - User mailing

Building query based on value of boolean field

2010-09-09 Thread PeterKerk
I have this field in my schema.xml: This one in my data-config: Now, how can I return all results for which partylocation = true? Thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/Building-query-based-on-value-of-boolean-field-tp1449018p1449018