hanaliang 's Profile

Member since Jun 24, 2009, follows 0 people, 0 public groups, 496 public bookmarks (499 total).

More »
Tags

Recent Tags:
Top Tags:

More »
Recent Bookmarks and Annotations

  • ImproveSearchingSpeed - Lucene-java Wiki on 2009-11-24
    • u must re-open the IndexSearcher in order to make newly committed changes visible to searching. However, re-opening the searcher has a certain overhead (noticeable mostly with large indexes and with sorting turned on) and should thus be minimized. Consider using a so called warming technique which allows the searcher to warm up its caches before the fir
  • SolrCaching - Solr Wiki on 2009-11-24
  • SolJSON - Solr Wiki on 2009-11-24
    • Potential UTF-8 encoding issue

      This is a small note: In some environment, the default javascript escape() may fail to encoded non-ASCII character into the utf-8 encoded string, which will make the search failed.

      To solve the problem universally, please refer the utf-8 encoding package by webtoolkit.info to write your own encoding function: http://www.webtoolkit.info/javascript-url-decode-encode.html

    • Potential UTF-8 encoding issue

      This is a small note: In some environment, the default javascript escape() may fail to encoded non-ASCII character into the utf-8 encoded string, which will make the search failed.

      To solve the problem universally, please refer the utf-8 encoding package by webtoolkit.info to write your own encoding function: http://www.webtoolkit.info/javascript-url-decode-encode.html

    • 2 more annotations...
  • Grails Plugin - Falcone Util on 2009-11-16
    • hibernate.[eventName].[domainClass], eg. hibernate.delete.Invoice would listen to all delete events for the Invoice domain class:

      Event NameEvent Class
      hibernate.autoFlushorg.hibernate.event.AutoFlushEvent
      hibernate.deleteorg.hibernate.event.DeleteEvent
      hibernate.dirtyCheckorg.hibernate.event.DirtyCheckEvent
      hibernate.evictorg.hibernate.event.EvictEvent
      hibernate.flushorg.hibernate.event.FlushEvent
      hibernate.flushEntityorg.hibernate.event.FlushEntityEvent
      hibernate.loadorg.hibernate.event.LoadEvent
      hibernate.initializeCollectionorg.hibernate.event.InitializeCollectionEvent
      hibernate.lockorg.hibernate.event.LockEvent
      hibernate.mergeorg.hibernate.event.MergeEvent
      hibernate.persistorg.hibernate.event.PersistEvent
      hibernate.postDeleteorg.hibernate.event.PostDeleteEvent
      hibernate.postInsertorg.hibernate.event.PostInsertEvent
      hibernate.postLoadorg.hibernate.event.PostLoadEvent
      hibernate.postUpdateorg.hibernate.event.PostUpdateEvent
      hibernate.preDeleteorg.hibernate.event.PreDeleteEvent
      hibernate.preInsertorg.hibernate.event.PreInsertEvent
      hibernate.preLoadorg.hibernate.event.PreLoadEvent
      hibernate.preUpdateorg.hibernate.event.PreUpdateEvent
      hibernate.refreshorg.hibernate.event.RefreshEvent
      hibernate.replicateorg.hibernate.event.ReplicateEvent
  • SimpleFacetParameters - Solr Wiki on 2009-11-13
    • it is important to remember that "Term" is a very specific concept in Lucene -- it relates to the literal field/value pairs that are Indexed after any Analysis occurs. For text fields that include stemming, or lowercasing, or word splitting you may not get what you expect. If you want both Analysis (for searching) and Faceting on the full literal Strings, use copyField to create two versions of the field: one Text and one String. Make sure both are indexed="true"
      • facet.method


        This parameter indicates what type of algorithm/method to use when faceting a field.

        • enum Enumerates all terms in a field, calculating the set intersection of documents that match the term with documents that match the query. This was the default (and only) method for faceting multi-valued fields prior to Solr 1.4.

        • fc (stands for field cache) The facet counts are calculated by iterating over documents that match the query and summing the terms that appear in each document. This was the default method for single valued fields prior to Solr 1.4.

        The default value is fc (except for BoolField) since it tends to use less memory and is faster when a field has many unique terms in the index.

        This parameter can be specified on a per field basis.

    • 2 more annotations...
  • IndexReader (Lucene 2.9.0 API) on 2009-11-13
    •  IndexReader
      reopen(boolean openReadOnly)



                Just like reopen(), except you can change the
      readOnly of the original reader.
  • 8. The Service Layer on 2009-11-02
    • Warning: dependency injection is the only way that declarative transactions work. You will not get a transactional service if you use the new operator such as new BookService()
  • Hibernate Search on 2009-10-29
    • he advantage of using the compound file format is that
      less file descriptors are used. The disadvantage is that indexing
      takes more time and temporary disk space. You can set this
      parameter to false in an attempt to improve the
      indexing time, but you could run out of file descriptors if
      mergeFactor is also
      large.


    • re : describe whether or not the
      property is stored in the Lucene index. You can store the value
      Store.YES (consuming more space in the index but
      allowing projection, see Section 5.1.2.5, “Projection”
    • 3 more annotations...
  • menu on 2009-10-26
  • Grails Quick Tip #2: Getting Access to SessionFactory and MessageSource « Brain Flush on 2009-10-26

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo