lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "UserTagDesign" by YonikSeeley
Date Sun, 04 Feb 2007 20:40:05 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by YonikSeeley:
http://wiki.apache.org/solr/UserTagDesign

The comment on the change is:
slight alternative: separate user and tag fields

------------------------------------------------------------------------------
  the first few letters and then give a dropdown list of existing tags to
  choose from.  Sort by tag popularity, optionally show counts.
    Tag popularity: number of users using that tag, or number of books
-   with that tag?  Either could work if neccesary, 
+   with that tag?  Either could work if necessary, 
   * Example1:  user types in "so" into the textbox when tagging a book, and
  they are automatically shown "solr(2), solrflare(1)"  (uses #books tagged)
   * Example2:  user types in "so" into the textbox when tagging a book, and
@@ -104, +104 @@

  
  == Implementations ==
  === Flat Schema #1 ===
- Add tags directly to the documents.
+ Add tags directly to the documents as a single user/tag token.
  
  ===== U-addUserTag =====
  {{{
  add to A10, field utag="~erik#lucene"   // single token
- add to A10, field utag2="~erik #lucene  // tokenized by whitespace
+ add to A10, field utag2="~erik","#lucene" // two tokens, added via copyField with a tokenizer
that splits the original
  }}}
- utag2 could be added via copyField
+ Alternative:
+ {{{
+ add to A10, field utag="erik#lucene"   // or "erik lucene", single token
+ add to A10, field user="erik"  // via copyField
+ add to A10, field tag="lucene" // via copyField
+ }}}
+ 
+ The latter looks simpler, but the former allows phrase queries to match different components
of a tag
+ with a single query.  A Lucene PhraseQuery across multiple fields would also work for the
latter if this capability is needed.
  
  ===== U-delUserTag =====
    remove A10.utag="~erik#lucene"

Mime
View raw message