<commit_before>Solr Workshop
========================


1) Gereksinimler

java 1.6

php => 5.3

MySQL

2) Kurulum
----------------------------------

    git clone <EMAIL>:phpistorg/workshop-eylul-2013.git
    cd workshop-eylul-2013
    cp app/config/parameters.yml.bak app/config/parameters.yml
    curl -s http://getcomposer.org/installer | php
    php composer.phar install

parameters.yml dosyasına göre veritabanı açarsanız dökümanın ilerleyen kısımlarında sorun yaşamazsınız.

3) solr'ı aktif hâle getirin.

    cd workshop-eylul-2013/solr/jetty
    java -jar start.jar

4) Test edin

    http://localhost:8983/solr/#/workshop


5) Örnek verileri yükleme

    mysql -uroot -proot workshop < workshop-eylul-2013/data/workshop_product.sql

6) Dataların aktarımı

    app/console solr:import full

7) Sorgular

http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1z%C4%B1%20kol&wt=xml&fl=*,score&indent=true&facet.field=name&facet.field=name_2&facet.field=name_3&facet.field=name_4&facet.mincount=0

Bunu mu demek istediniz ?

http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1&wt=xml&fl=*,score&indent=true

http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1%20ayakk&wt=xml&fl=*,score&indent=true&facet.field=text&facet.field=text_2&facet.mincount=1

http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1%20ayakka&wt=xml&fl=*,score&indent=true&facet.field=text&facet.field=text_2&facet.mincount=1

Kelime kökü örneği

http://localhost:8983/solr/workshop/select?q=name_3:k%C4%B1rm%C4%B1z%C4%B1&debugQuery=true&wt=xml&fl=*,score&indent=true



<commit_msg>güncellemeler<commit_after>Solr Workshop
========================


1) Gereksinimler

java 1.6

php => 5.3

MySQL

2) Kurulum
----------------------------------

    git clone <EMAIL>:phpistorg/workshop-eylul-2013.git
    cd workshop-eylul-2013
    cp app/config/parameters.yml.bak app/config/parameters.yml
    curl -s http://getcomposer.org/installer | php
    php composer.phar install

parameters.yml dosyasına göre veritabanı açarsanız dökümanın ilerleyen kısımlarında sorun yaşamazsınız.

3) solr'ı aktif hâle getirin.

    cd workshop-eylul-2013/solr/jetty
    java -jar start.jar

4) Test edin

    http://localhost:8983/solr/#/workshop


5) Örnek verileri yükleme

    mysql -uroot -proot workshop < workshop-eylul-2013/data/workshop_product.sql

6) Dataların aktarımı

    app/console solr:import full

7) Sorgular

    http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1z%C4%B1%20kol&wt=xml&fl=*,score&indent=true&facet.field=name&facet.field=name_2&facet.field=name_3&facet.field=name_4&facet.mincount=0

Bunu mu demek istediniz ?

    http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1&wt=xml&fl=*,score&indent=true

    http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1%20ayakk&wt=xml&fl=*,score&indent=true&facet.field=text&facet.field=text_2&facet.mincount=1

    http://localhost:8983/solr/workshop/browse?q=k%C4%B1rm%C4%B1%20ayakka&wt=xml&fl=*,score&indent=true&facet.field=text&facet.field=text_2&facet.mincount=1

Kelime kökü örneği

    http://localhost:8983/solr/workshop/select?q=name_3:k%C4%B1rm%C4%B1z%C4%B1&debugQuery=true&wt=xml&fl=*,score&indent=true

Boost örnekleri;
(field da geçen tam kelime gerekli, dismax)
    http://localhost:8983/solr/workshop/select?defType=dismax&q=sakat&wt=xml&fl=*,score&indent=true&bq=category:saat^5.0
    http://localhost:8983/solr/workshop/select?defType=dismax&q=sakat&wt=xml&fl=*,score&indent=true&bq=category:%C3%A7izme^5.0

(score değerlerine dikkat )

    http://localhost:8983/solr/workshop/select?defType=edismax&q=sa*&wt=xml&fl=*,score&indent=true&qf=name









{'fraction_non_alphanumeric': 0.17067833698030635, 'fraction_numerical': 0.05415754923413567, 'mean_word_length': 5.034653465346534, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 13}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '153010', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1589, 'n_words': 173}