You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Khai Doan <kh...@gmail.com> on 2010/07/29 21:17:58 UTC

myField:value does not seem to work

Hello,

My name is Khai.  I am new to Solr, and I am having a strange issue.  I use
the admin interface and search for "Khai" and it work fine.  However if I
type

membername:Khai

it does not work.

Please provide me with hints on what the issue may be.

Thank you,

Khai

Re: myField:value does not seem to work

Posted by Erick Erickson <er...@gmail.com>.
A very useful page:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters

Best
Erick

On Thu, Jul 29, 2010 at 6:44 PM, Khai Doan <kh...@gmail.com> wrote:

> Thank you all.
>
> Khai
>
> On Thu, Jul 29, 2010 at 3:38 PM, Mats Bolstad <mb...@gmail.com> wrote:
>
> > Put simply, strings do not go through filters, and will need exact
> > matching. A string field can typically be an ID field.
> > Texts go through filters so that "bar" could match "Foo Bars", for
> example.
> >
> > Types are well documented in the example schema.xml shipped with solr.
> > You would also find more info in the wiki.
> >
> > On 29. juli 2010, at 22:53, Khai Doan <kh...@gmail.com> wrote:
> >
> > > What are the differences between "string" and "text"?
> > >
> > > What other types (that are available by default) can I use?
> > >
> > > Thanks,
> > > Khai
> > >
> > > On Thu, Jul 29, 2010 at 1:30 PM, Mats Bolstad <ma...@stud.ntnu.no>
> > wrote:
> > >
> > >> Type string is not tokenized, meaning that it would match only the
> > >> exact phrase "Khai Bright T". Use text (or another) type that
> > >> tokenizes (on whitespace in this case) instead.
> > >>
> > >> Mats Bolstad
> > >>
> > >>
> > >>
> > >> On Thu, Jul 29, 2010 at 9:55 PM, Khai Doan <kh...@gmail.com>
> wrote:
> > >>> Hi Yonik,
> > >>>
> > >>> Here is the field definition in schema.xml:
> > >>>
> > >>> <field name="membername" type="string" indexed="true" stored="true"/>
> > >>>
> > >>> and it is populated with "Khai Bright T"
> > >>>
> > >>> I am using solr 1.4.1
> > >>>
> > >>> Khai
> > >>>
> > >>> On Thu, Jul 29, 2010 at 12:49 PM, Yonik Seeley
> > >>> <yo...@lucidimagination.com>wrote:
> > >>>
> > >>>> Is membername an indexed field in the schema, and was it populated
> > >>>> with something that would match "Khai"?
> > >>>> If so, what is the fieldType in the schema for the membername field?
> > >>>>
> > >>>> -Yonik
> > >>>> http://www.lucidimagination.com
> > >>>>
> > >>>>
> > >>>> On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com>
> > wrote:
> > >>>>> Hello,
> > >>>>>
> > >>>>> My name is Khai.  I am new to Solr, and I am having a strange
> issue.
> > >> I
> > >>>> use
> > >>>>> the admin interface and search for "Khai" and it work fine.
>  However
> > >> if I
> > >>>>> type
> > >>>>>
> > >>>>> membername:Khai
> > >>>>>
> > >>>>> it does not work.
> > >>>>>
> > >>>>> Please provide me with hints on what the issue may be.
> > >>>>>
> > >>>>> Thank you,
> > >>>>>
> > >>>>> Khai
> > >>>>>
> > >>>>
> > >>>
> > >>
> >
>

Re: myField:value does not seem to work

Posted by Khai Doan <kh...@gmail.com>.
Thank you all.

Khai

On Thu, Jul 29, 2010 at 3:38 PM, Mats Bolstad <mb...@gmail.com> wrote:

> Put simply, strings do not go through filters, and will need exact
> matching. A string field can typically be an ID field.
> Texts go through filters so that "bar" could match "Foo Bars", for example.
>
> Types are well documented in the example schema.xml shipped with solr.
> You would also find more info in the wiki.
>
> On 29. juli 2010, at 22:53, Khai Doan <kh...@gmail.com> wrote:
>
> > What are the differences between "string" and "text"?
> >
> > What other types (that are available by default) can I use?
> >
> > Thanks,
> > Khai
> >
> > On Thu, Jul 29, 2010 at 1:30 PM, Mats Bolstad <ma...@stud.ntnu.no>
> wrote:
> >
> >> Type string is not tokenized, meaning that it would match only the
> >> exact phrase "Khai Bright T". Use text (or another) type that
> >> tokenizes (on whitespace in this case) instead.
> >>
> >> Mats Bolstad
> >>
> >>
> >>
> >> On Thu, Jul 29, 2010 at 9:55 PM, Khai Doan <kh...@gmail.com> wrote:
> >>> Hi Yonik,
> >>>
> >>> Here is the field definition in schema.xml:
> >>>
> >>> <field name="membername" type="string" indexed="true" stored="true"/>
> >>>
> >>> and it is populated with "Khai Bright T"
> >>>
> >>> I am using solr 1.4.1
> >>>
> >>> Khai
> >>>
> >>> On Thu, Jul 29, 2010 at 12:49 PM, Yonik Seeley
> >>> <yo...@lucidimagination.com>wrote:
> >>>
> >>>> Is membername an indexed field in the schema, and was it populated
> >>>> with something that would match "Khai"?
> >>>> If so, what is the fieldType in the schema for the membername field?
> >>>>
> >>>> -Yonik
> >>>> http://www.lucidimagination.com
> >>>>
> >>>>
> >>>> On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com>
> wrote:
> >>>>> Hello,
> >>>>>
> >>>>> My name is Khai.  I am new to Solr, and I am having a strange issue.
> >> I
> >>>> use
> >>>>> the admin interface and search for "Khai" and it work fine.  However
> >> if I
> >>>>> type
> >>>>>
> >>>>> membername:Khai
> >>>>>
> >>>>> it does not work.
> >>>>>
> >>>>> Please provide me with hints on what the issue may be.
> >>>>>
> >>>>> Thank you,
> >>>>>
> >>>>> Khai
> >>>>>
> >>>>
> >>>
> >>
>

Re: myField:value does not seem to work

Posted by Mats Bolstad <mb...@gmail.com>.
Put simply, strings do not go through filters, and will need exact
matching. A string field can typically be an ID field.
Texts go through filters so that "bar" could match "Foo Bars", for example.

Types are well documented in the example schema.xml shipped with solr.
You would also find more info in the wiki.

On 29. juli 2010, at 22:53, Khai Doan <kh...@gmail.com> wrote:

> What are the differences between "string" and "text"?
>
> What other types (that are available by default) can I use?
>
> Thanks,
> Khai
>
> On Thu, Jul 29, 2010 at 1:30 PM, Mats Bolstad <ma...@stud.ntnu.no> wrote:
>
>> Type string is not tokenized, meaning that it would match only the
>> exact phrase "Khai Bright T". Use text (or another) type that
>> tokenizes (on whitespace in this case) instead.
>>
>> Mats Bolstad
>>
>>
>>
>> On Thu, Jul 29, 2010 at 9:55 PM, Khai Doan <kh...@gmail.com> wrote:
>>> Hi Yonik,
>>>
>>> Here is the field definition in schema.xml:
>>>
>>> <field name="membername" type="string" indexed="true" stored="true"/>
>>>
>>> and it is populated with "Khai Bright T"
>>>
>>> I am using solr 1.4.1
>>>
>>> Khai
>>>
>>> On Thu, Jul 29, 2010 at 12:49 PM, Yonik Seeley
>>> <yo...@lucidimagination.com>wrote:
>>>
>>>> Is membername an indexed field in the schema, and was it populated
>>>> with something that would match "Khai"?
>>>> If so, what is the fieldType in the schema for the membername field?
>>>>
>>>> -Yonik
>>>> http://www.lucidimagination.com
>>>>
>>>>
>>>> On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com> wrote:
>>>>> Hello,
>>>>>
>>>>> My name is Khai.  I am new to Solr, and I am having a strange issue.
>> I
>>>> use
>>>>> the admin interface and search for "Khai" and it work fine.  However
>> if I
>>>>> type
>>>>>
>>>>> membername:Khai
>>>>>
>>>>> it does not work.
>>>>>
>>>>> Please provide me with hints on what the issue may be.
>>>>>
>>>>> Thank you,
>>>>>
>>>>> Khai
>>>>>
>>>>
>>>
>>

Re: myField:value does not seem to work

Posted by Khai Doan <kh...@gmail.com>.
What are the differences between "string" and "text"?

What other types (that are available by default) can I use?

Thanks,
Khai

On Thu, Jul 29, 2010 at 1:30 PM, Mats Bolstad <ma...@stud.ntnu.no> wrote:

> Type string is not tokenized, meaning that it would match only the
> exact phrase "Khai Bright T". Use text (or another) type that
> tokenizes (on whitespace in this case) instead.
>
> Mats Bolstad
>
>
>
> On Thu, Jul 29, 2010 at 9:55 PM, Khai Doan <kh...@gmail.com> wrote:
> > Hi Yonik,
> >
> > Here is the field definition in schema.xml:
> >
> > <field name="membername" type="string" indexed="true" stored="true"/>
> >
> > and it is populated with "Khai Bright T"
> >
> > I am using solr 1.4.1
> >
> > Khai
> >
> > On Thu, Jul 29, 2010 at 12:49 PM, Yonik Seeley
> > <yo...@lucidimagination.com>wrote:
> >
> >> Is membername an indexed field in the schema, and was it populated
> >> with something that would match "Khai"?
> >> If so, what is the fieldType in the schema for the membername field?
> >>
> >> -Yonik
> >> http://www.lucidimagination.com
> >>
> >>
> >> On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com> wrote:
> >> > Hello,
> >> >
> >> > My name is Khai.  I am new to Solr, and I am having a strange issue.
>  I
> >> use
> >> > the admin interface and search for "Khai" and it work fine.  However
> if I
> >> > type
> >> >
> >> > membername:Khai
> >> >
> >> > it does not work.
> >> >
> >> > Please provide me with hints on what the issue may be.
> >> >
> >> > Thank you,
> >> >
> >> > Khai
> >> >
> >>
> >
>

Re: myField:value does not seem to work

Posted by Mats Bolstad <ma...@stud.ntnu.no>.
Type string is not tokenized, meaning that it would match only the
exact phrase "Khai Bright T". Use text (or another) type that
tokenizes (on whitespace in this case) instead.

Mats Bolstad



On Thu, Jul 29, 2010 at 9:55 PM, Khai Doan <kh...@gmail.com> wrote:
> Hi Yonik,
>
> Here is the field definition in schema.xml:
>
> <field name="membername" type="string" indexed="true" stored="true"/>
>
> and it is populated with "Khai Bright T"
>
> I am using solr 1.4.1
>
> Khai
>
> On Thu, Jul 29, 2010 at 12:49 PM, Yonik Seeley
> <yo...@lucidimagination.com>wrote:
>
>> Is membername an indexed field in the schema, and was it populated
>> with something that would match "Khai"?
>> If so, what is the fieldType in the schema for the membername field?
>>
>> -Yonik
>> http://www.lucidimagination.com
>>
>>
>> On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com> wrote:
>> > Hello,
>> >
>> > My name is Khai.  I am new to Solr, and I am having a strange issue.  I
>> use
>> > the admin interface and search for "Khai" and it work fine.  However if I
>> > type
>> >
>> > membername:Khai
>> >
>> > it does not work.
>> >
>> > Please provide me with hints on what the issue may be.
>> >
>> > Thank you,
>> >
>> > Khai
>> >
>>
>

Re: myField:value does not seem to work

Posted by Khai Doan <kh...@gmail.com>.
Hi Yonik,

Here is the field definition in schema.xml:

<field name="membername" type="string" indexed="true" stored="true"/>

and it is populated with "Khai Bright T"

I am using solr 1.4.1

Khai

On Thu, Jul 29, 2010 at 12:49 PM, Yonik Seeley
<yo...@lucidimagination.com>wrote:

> Is membername an indexed field in the schema, and was it populated
> with something that would match "Khai"?
> If so, what is the fieldType in the schema for the membername field?
>
> -Yonik
> http://www.lucidimagination.com
>
>
> On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com> wrote:
> > Hello,
> >
> > My name is Khai.  I am new to Solr, and I am having a strange issue.  I
> use
> > the admin interface and search for "Khai" and it work fine.  However if I
> > type
> >
> > membername:Khai
> >
> > it does not work.
> >
> > Please provide me with hints on what the issue may be.
> >
> > Thank you,
> >
> > Khai
> >
>

Re: myField:value does not seem to work

Posted by Yonik Seeley <yo...@lucidimagination.com>.
Is membername an indexed field in the schema, and was it populated
with something that would match "Khai"?
If so, what is the fieldType in the schema for the membername field?

-Yonik
http://www.lucidimagination.com


On Thu, Jul 29, 2010 at 3:17 PM, Khai Doan <kh...@gmail.com> wrote:
> Hello,
>
> My name is Khai.  I am new to Solr, and I am having a strange issue.  I use
> the admin interface and search for "Khai" and it work fine.  However if I
> type
>
> membername:Khai
>
> it does not work.
>
> Please provide me with hints on what the issue may be.
>
> Thank you,
>
> Khai
>