Re: Should Medical be highlighted when user search for medication?

2010-10-05 Thread Khai Doan
I see that medication got reduced to medic.

Thanks,
Khai

On Tue, Oct 5, 2010 at 3:57 PM, Koji Sekiguchi k...@r.email.ne.jp wrote:

 (10/10/06 4:41), Khai Doan wrote:

 I am still trying to learn Solr.  My Solr configuration is based on the
 default example schema.xml (I haven't customize the field types).  I am
 using text for the fields that I want highlighting on.

 I am searching for medication, but I see that Medical is highlighted.
 Should this be the case?  If this should not be the case, how should I go
 about fixing it?

 Thanks,
 Khai


 Hi Khai,

 I think SnowballPorterFilter works in this case.
 Go admin gui, click analysis link, and input field
 name (text) and field values (medical and medication), then
 click Analyze. See how text field changes medication and
 medical terms.

 Koji

 --
 http://www.rondhuit.com/en/



Re: How to tell Solr to return all fields including empty fields?

2010-10-02 Thread Khai Doan
Thanks for replying.  I need to have the empty fields because if the field
is not there, the Java library (
http://www.json.org/javadoc/org/json/JSONObject.html) that I use to parse
the result will throw an exception.  Quite inconvenient.

Thanks,
Khai

On Fri, Oct 1, 2010 at 6:45 PM, Erick Erickson erickerick...@gmail.comwrote:

 Nope. If a field is empty, it's just not in the document. You could index
 an empty value (some unique value for empty) if you really need this.

 But a more interesting question is why you need this. What is it about
 returning an empty field that's important? Couldn't you detect this through
 the absence of the field?

 Best
 Erick

 On Fri, Oct 1, 2010 at 3:44 PM, Khai Doan khaitd...@gmail.com wrote:

  Hello everyone,
 
  Right now, I am using fl=*,score to get all fields from Solr.  However
  empty
  fields are not returned.  Is there a way for me to tell Solr to return
 all
  fields including empty fields?
 
  Thanks,
  Khai
 



How to tell Solr to return all fields including empty fields?

2010-10-01 Thread Khai Doan
Hello everyone,

Right now, I am using fl=*,score to get all fields from Solr.  However empty
fields are not returned.  Is there a way for me to tell Solr to return all
fields including empty fields?

Thanks,
Khai


myField:value does not seem to work

2010-07-29 Thread Khai Doan
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

2010-07-29 Thread Khai Doan
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 mat...@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 khaitd...@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.comwrote:
 
  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 khaitd...@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

2010-07-29 Thread Khai Doan
Thank you all.

Khai

On Thu, Jul 29, 2010 at 3:38 PM, Mats Bolstad mbols...@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 khaitd...@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 mat...@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 khaitd...@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.comwrote:
 
  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 khaitd...@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
 
 
 
 



How to use DataImportHandler with ExtractingRequestHandler?

2009-09-02 Thread Khai Doan
Hi all,

My name is Khai.  I have a table in a relational database.  I have
successfully use DataImportHandler to import this data into Apache Solr.
However, one of the column store the location of PDF file.  How can I
configure DataImportHandler to use ExtractingRequestHandler to extract the
content of the PDF?

Thanks!

Khai Doan


Re: Can Apache Solr have more than one schema?

2009-08-27 Thread Khai Doan
Thanks Uri,

Now my question is: how can I specify which schema to query against?

Thanks!

Khai

On Thu, Aug 27, 2009 at 5:43 PM, Uri Boness ubon...@gmail.com wrote:

 Not in the same core. You can define multiple cores where each core is a
 separate solr instance except they all run within one container. each core
 has its own index, schema and configuration. If you want to compare it to
 databases, then I guess a core is to Solr Server what a database is to its
 RDBMS.


 Khai Doan wrote:

 Hello,

 My name is Khai.  I am new to Apache Solr. My question is: Can we have
 more
 than one schema / table?

 Thanks!

 Khai