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 alu <ko...@ninja.co.jp> on 2012/11/14 05:06:35 UTC

Neary text search system with solr.

Hi.

I maiking "Neary text search system" with solr.

Example:

input text : Hello World!
query: Hello World!
response: Hello World!

this point went well

input text : Hello World!
query: World! Hello
response: Hello World!

This does not work.

I need switched back and forth text.
How to?



--
View this message in context: http://lucene.472066.n3.nabble.com/Neary-text-search-system-with-solr-tp4020208.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Neary text search system with solr.

Posted by Ahmet Arslan <io...@yahoo.com>.
Kobayashi-san,

I am sorry but I don't understand your question. There is a book that is an essential guide for Japanese speaking new Solr users. 

http://wiki.apache.org/solr/GijutsuHyohronBook2010



--- On Fri, 11/16/12, alu <ko...@ninja.co.jp> wrote:

> From: alu <ko...@ninja.co.jp>
> Subject: Re: Neary text search system with solr.
> To: solr-user@lucene.apache.org
> Date: Friday, November 16, 2012, 2:34 AM
> Thank you iorixxx san!
> Sorry, i'm very poor english...!
> 
> This is concrete example.
> 
> ::shcema.xml
>   .....
>     <fieldType name="text_cjk"
> class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer>
>         <tokenizer
> class="solr.StandardTokenizerFactory"/>
>         <filter
> class="solr.CJKWidthFilterFactory"/>
>         <filter
> class="solr.LowerCaseFilterFactory"/>
>         <filter
> class="solr.CJKBigramFilterFactory"/>
>       </analyzer>
>     </fieldType>
>   .....
>     <field name="text" type="text_cjk"
> multiValued="false" required="true"
> />
> 
> 
> 
> 
> ::Indexing Value(this is ZAKU information from Wikipedia
> Ja)
> { text:
> "ザクまたはザクII(ザク・ツー)は、『ガンダムシリーズ』に登場する有人巨大人型ロボット兵器。"}
> 
> ::Query(Hit Document)
> text:
> ザクまたはザクII(ザク・ツー)は、『ガンダムシリーズ』に登場する有人巨大人型ロボット兵器。
> 
> ::Query(No Hit  Document)
> text:
> 『ガンダムシリーズ』に登場する有人巨大人型ロボット兵器ザクまたはザクII(ザク・ツー)は、。
> 
> This queries are dont use NOT operator.
> 
> 
> Got that in this description....?
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Neary-text-search-system-with-solr-tp4020208p4020626.html
> Sent from the Solr - User mailing list archive at
> Nabble.com.
> 

Re: Neary text search system with solr.

Posted by alu <ko...@ninja.co.jp>.
Thank you iorixxx san!
Sorry, i'm very poor english...!

This is concrete example.

::shcema.xml
  .....
    <fieldType name="text_cjk" class="solr.TextField"
positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.CJKWidthFilterFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.CJKBigramFilterFactory"/>
      </analyzer>
    </fieldType>
  .....
    <field name="text" type="text_cjk" multiValued="false" required="true"
/>




::Indexing Value(this is ZAKU information from Wikipedia Ja)
{ text: "ザクまたはザクII(ザク・ツー)は、『ガンダムシリーズ』に登場する有人巨大人型ロボット兵器。"}

::Query(Hit Document)
text: ザクまたはザクII(ザク・ツー)は、『ガンダムシリーズ』に登場する有人巨大人型ロボット兵器。

::Query(No Hit  Document)
text: 『ガンダムシリーズ』に登場する有人巨大人型ロボット兵器ザクまたはザクII(ザク・ツー)は、。

This queries are dont use NOT operator.


Got that in this description....?



--
View this message in context: http://lucene.472066.n3.nabble.com/Neary-text-search-system-with-solr-tp4020208p4020626.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Neary text search system with solr.

Posted by Ahmet Arslan <io...@yahoo.com>.
Kobayashi-san

I suspect you are hitting this: 

"The NOT operator excludes documents that contain the term after NOT. This is equivalent to a difference using sets. The symbol ! can be used in place of the word NOT."

If you appends &debugQuery=on to your search URL, you can see parsed query etc.

--- On Wed, 11/14/12, alu <ko...@ninja.co.jp> wrote:

> From: alu <ko...@ninja.co.jp>
> Subject: Neary text search system with solr.
> To: solr-user@lucene.apache.org
> Date: Wednesday, November 14, 2012, 6:06 AM
> Hi.
> 
> I maiking "Neary text search system" with solr.
> 
> Example:
> 
> input text : Hello World!
> query: Hello World!
> response: Hello World!
> 
> this point went well
> 
> input text : Hello World!
> query: World! Hello
> response: Hello World!
> 
> This does not work.
> 
> I need switched back and forth text.
> How to?
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Neary-text-search-system-with-solr-tp4020208.html
> Sent from the Solr - User mailing list archive at
> Nabble.com.
>