How to index and search two different tables which are in same datasource using single solr instance(two different search fields no joins)

后端 未结 2 942
走了就别回头了
走了就别回头了 2021-02-03 16:05

I am new to solr. I have couple of questions on solr Indexing and searching:

  1. Can I configure to index two tables( no relationship 1. books and 2. computers and bot
2条回答
  •  攒了一身酷
    2021-02-03 16:45

    2 different tables no relation

    data-config.xml:

        
            
                
                
    
            
    
            
                
                
                
                
                
            
        
    

    schema.xml:

        
            . . .
            
    
                
                
    
                
    
    
                . . . .
            
    
            doc_id
            
    
            
            catchall
        
    

    more info -http://www.lucidimagination.com/blog/2011/02/12/solr-powered-isfdb-part-4/

    no above field should be required or may create problem while indexing

    you can query on browser like http://localhost:8080/solr/select/?q=*:*&fq=doc_type:PRODUCT

提交回复
热议问题