lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王建新 <lieut...@gmail.com>
Subject Need addtional info for Field(希望看得懂中文的朋友帮我出出主意)
Date Tue, 22 Apr 2008 05:05:42 GMT
ӢĿòǺ˼


----- Original Message ----- 
From:  
To: Chris 
Sent: Tuesday, April 22, 2008 9:52 AM
Subject: Re: Need addtional info for Field


лл
ҵģҪһƵļ(video)(index)ڽ֮ǰѾƵʲôʱʲôĻݡ
£һƵĿ൱һDocument,ôҪ(ϣ)Ļ£
    Field("Sub","ȥ""01:02:02");
    Field("Sub","ȥ""01:03:05");
    [ע"01:02:02"Ǹʱ䣬luceneûṩ÷]

FieldʾڵǰƵĿУ01:02:02ʱĻȥᡱ01:03:05ʱˡȥᡱû(User)硱ǰƵĿǿƥģֻƥ䵽˵һFieldֻҪ֪ʱ䡰01:02:02ûᡱFieldƥ䵽Ҫ֪ʱ䡰01:02:02͡01:03:05
֪û˵

֪luceneDzǿͨijַʽ⣬еĻҪ޸luceneأ


  ----- Original Message ----- 
  From: Chris 
  To:  
  Sent: Monday, April 21, 2008 7:34 PM
  Subject: Re: Need addtional info for Field


  Ĺܿһcᣬ䌍@̎Ҫ~....

  ]࣬ҙλQһ multi-pair ֵԒ String Ŷ

  
                     Chris.

   
  2008/4/21,  <lieutroy@gmail.com>: 
    㿴ö

    ҲǺ˼
    ˵luceneеĹ

      ----- Original Message ----- 
      From: Chris 
      To:  
      Sent: Monday, April 21, 2008 5:14 PM
      Subject: Re: Need addtional info for Field

       
      This problem is not solve with lucene but or method will solve it.

      The structure is not define as this as well ......

      You may check it clear....

      above
                     Chris.

       
      2008/4/21,  <lieutroy@gmail.com>: 
        hi Chris, it is me ""

        I have a new problem, Could you give me any advice? Thank you.


        I want to use lucene with some additional info,like:

        1.index
            Document additionalDoc=ew Document()

            additionalDoc.add(new Field("field","AA BB","Addtional info ..............."));
            additionalDoc.add(new Field("field","BB CC","Addtional info 222222222222222222222222..............."));

            writer.addDocument(additionalDoc)

            ........


        2. search

            Searcher searcher;
            ....

            searcher.search(termQuery("field","BB"));




            in this condition, I want lucene returns the additionalDoc , also know which fileds
were matched, then I will get the additional info from the matched fields.

        Can lucene make it in version 2.3.1?



      -- 
      Chris Lin 
      chrislin0426@gmail.com
      Taipei , Taiwan.
      ----------------------------------------------------------- 



  -- 
  Chris Lin 
  chrislin0426@gmail.com
  Taipei , Taiwan.
  ----------------------------------------------------------- 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message