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
; 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"
>> >
>
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
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
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
: 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.
".
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=*:*&
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
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
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
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.
: 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
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
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
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
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
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
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
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
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
20 matches
Mail list logo